Skip to content

Commit

Permalink
fix building with deprecated methods off
Browse files Browse the repository at this point in the history
  • Loading branch information
scheffle committed Apr 13, 2023
1 parent b38ec2a commit ea0364b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions vstgui/uidescription/viewcreator/autoanimationcreator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,11 @@ bool AutoAnimationCreator::apply (CView* view, const UIAttributes& attributes,
int32_t value;
if (attributes.getIntegerAttribute (kAttrAnimationTime, value))
autoAnimation->setAnimationTime (static_cast<uint32_t> (value));
#if VSTGUI_ENABLE_DEPRECATED_METHODS
CPoint point;
if (attributes.getPointAttribute (kAttrBitmapOffset, point))
autoAnimation->setBitmapOffset (point);
#endif
return true;
}

Expand All @@ -80,11 +82,13 @@ bool AutoAnimationCreator::getAttributeValue (CView* view, const string& attribu
static_cast<int32_t> (autoAnimation->getAnimationTime ()));
return true;
}
#if VSTGUI_ENABLE_DEPRECATED_METHODS
if (attributeName == kAttrBitmapOffset)
{
stringValue = UIAttributes::pointToString (autoAnimation->getBitmapOffset ());
return true;
}
#endif
return false;
}

Expand Down

0 comments on commit ea0364b

Please sign in to comment.