diff --git a/vstgui/uidescription/viewcreator/autoanimationcreator.cpp b/vstgui/uidescription/viewcreator/autoanimationcreator.cpp index 092767138..baa380263 100644 --- a/vstgui/uidescription/viewcreator/autoanimationcreator.cpp +++ b/vstgui/uidescription/viewcreator/autoanimationcreator.cpp @@ -61,9 +61,11 @@ bool AutoAnimationCreator::apply (CView* view, const UIAttributes& attributes, int32_t value; if (attributes.getIntegerAttribute (kAttrAnimationTime, value)) autoAnimation->setAnimationTime (static_cast (value)); +#if VSTGUI_ENABLE_DEPRECATED_METHODS CPoint point; if (attributes.getPointAttribute (kAttrBitmapOffset, point)) autoAnimation->setBitmapOffset (point); +#endif return true; } @@ -80,11 +82,13 @@ bool AutoAnimationCreator::getAttributeValue (CView* view, const string& attribu static_cast (autoAnimation->getAnimationTime ())); return true; } +#if VSTGUI_ENABLE_DEPRECATED_METHODS if (attributeName == kAttrBitmapOffset) { stringValue = UIAttributes::pointToString (autoAnimation->getBitmapOffset ()); return true; } +#endif return false; }