Skip to content

Commit

Permalink
engine: fix RGB panel physical properties save/load
Browse files Browse the repository at this point in the history
  • Loading branch information
mcallegari committed Nov 16, 2024
1 parent 3022ee5 commit 0b4adcf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions engine/src/fixture.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1041,7 +1041,7 @@ bool Fixture::loadXML(QXmlStreamReader &xmlDoc, Doc *doc,
{
modeName = xmlDoc.readElementText();
}
else if (xmlDoc.name() == KXMLQLCPhysicalDimensionsWeight)
else if (xmlDoc.name() == KXMLQLCPhysicalDimensionsWidth)
{
width = xmlDoc.readElementText().toUInt();
}
Expand Down Expand Up @@ -1260,7 +1260,7 @@ bool Fixture::saveXML(QXmlStreamWriter *doc) const
/* RGB Panel physical dimensions */
if (m_fixtureDef != NULL && m_fixtureDef->model() == KXMLFixtureRGBPanel && m_fixtureMode != NULL)
{
doc->writeTextElement(KXMLQLCPhysicalDimensionsWeight,
doc->writeTextElement(KXMLQLCPhysicalDimensionsWidth,
QString::number(m_fixtureMode->physical().width()));

doc->writeTextElement(KXMLQLCPhysicalDimensionsHeight,
Expand Down

0 comments on commit 0b4adcf

Please sign in to comment.