mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-22 17:50:52 +01:00
fix typos and whitespace
This commit is contained in:
@@ -414,8 +414,8 @@ const QDomDocument ElementScene::toXml(bool all_parts)
|
|||||||
{
|
{
|
||||||
QRectF size= elementSceneGeometricRect();
|
QRectF size= elementSceneGeometricRect();
|
||||||
|
|
||||||
// if the element doesn't contains the origin point of the scene
|
// if the element doesn't contain the origin point of the scene
|
||||||
// we move the element to the origin for solve this default before saving
|
// we move the element to the origin to solve this default before saving
|
||||||
if (!size.contains(0,0) && all_parts)
|
if (!size.contains(0,0) && all_parts)
|
||||||
{
|
{
|
||||||
centerElementToOrigine();
|
centerElementToOrigine();
|
||||||
@@ -469,9 +469,9 @@ const QDomDocument ElementScene::toXml(bool all_parts)
|
|||||||
root.appendChild(m_element_data.kindInfoToXml(xml_document));
|
root.appendChild(m_element_data.kindInfoToXml(xml_document));
|
||||||
}
|
}
|
||||||
|
|
||||||
if(type_ == ElementData::Simple ||
|
if (type_ == ElementData::Simple ||
|
||||||
type_ == ElementData::Master ||
|
type_ == ElementData::Master ||
|
||||||
type_ == ElementData::Terminale||
|
type_ == ElementData::Terminale ||
|
||||||
type_ == ElementData::Thumbnail)
|
type_ == ElementData::Thumbnail)
|
||||||
{
|
{
|
||||||
QDomElement element_info = xml_document.createElement("elementInformations");
|
QDomElement element_info = xml_document.createElement("elementInformations");
|
||||||
|
|||||||
Reference in New Issue
Block a user