diff --git a/ArchitectureColoredPainting/src/Editor/LayerWrapper.cpp b/ArchitectureColoredPainting/src/Editor/LayerWrapper.cpp index fae4f30..9289788 100644 --- a/ArchitectureColoredPainting/src/Editor/LayerWrapper.cpp +++ b/ArchitectureColoredPainting/src/Editor/LayerWrapper.cpp @@ -47,6 +47,7 @@ LayerWrapper::LayerWrapper(QJsonObject json, FolderLayerWrapper*parent, ElementM transformJson.value("scale").toObject().value("y").toDouble()}; property.rotation = {transformJson.value("rotation").toDouble()}; property.flipX = { transformJson.value("flipX").toBool() }; + qDebug() << property.flipX; property.flipY = { transformJson.value("flipY").toBool() }; selected = false; hidden = false; @@ -262,8 +263,8 @@ QJsonObject LayerWrapper::toJson() const QJsonObject transformJson; transformJson.insert("offset", QJsonObject({ {"x", property.offset.x()}, {"y", property.offset.y()} })); transformJson.insert("scale", QJsonObject({ {"x", property.scale.x()}, {"y", property.scale.y()} })); - transformJson.insert("filpX", property.flipX); - transformJson.insert("filpY", property.flipY); + transformJson.insert("flipX", property.flipX); + transformJson.insert("flipY", property.flipY); transformJson.insert("rotation", property.rotation); json.insert("transform", transformJson); return json;