From 706eba66123c93a4f281d84ac87fb67f743e9761 Mon Sep 17 00:00:00 2001 From: plc-user <74435298+plc-user@users.noreply.github.com> Date: Sun, 9 Feb 2025 12:25:09 +0100 Subject: [PATCH] fix typos and whitespace --- sources/editor/elementscene.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sources/editor/elementscene.cpp b/sources/editor/elementscene.cpp index c5009b62a..86443a38b 100644 --- a/sources/editor/elementscene.cpp +++ b/sources/editor/elementscene.cpp @@ -414,8 +414,8 @@ const QDomDocument ElementScene::toXml(bool all_parts) { QRectF size= elementSceneGeometricRect(); - // if the element doesn't contains the origin point of the scene - // we move the element to the origin for solve this default before saving + // if the element doesn't contain the origin point of the scene + // we move the element to the origin to solve this default before saving if (!size.contains(0,0) && all_parts) { centerElementToOrigine(); @@ -469,9 +469,9 @@ const QDomDocument ElementScene::toXml(bool all_parts) root.appendChild(m_element_data.kindInfoToXml(xml_document)); } - if(type_ == ElementData::Simple || - type_ == ElementData::Master || - type_ == ElementData::Terminale|| + if (type_ == ElementData::Simple || + type_ == ElementData::Master || + type_ == ElementData::Terminale || type_ == ElementData::Thumbnail) { QDomElement element_info = xml_document.createElement("elementInformations");