Removed synchronous image size getter
[platform/core/uifw/dali-core.git] / dali / internal / event / images / nine-patch-image-impl.cpp
index 65cbb72..32e584a 100644 (file)
@@ -157,6 +157,8 @@ NinePatchImage::NinePatchImage( const std::string& filename, const Dali::ImageAt
   loadedAttrs.SetSize( closestSize );
   mWidth = closestSize.width;
   mHeight = closestSize.height;
+  mNaturalSizeSet = true;
+
   Integration::BitmapResourceType resourceType( loadedAttrs );
 
   // Note, bitmap is only destroyed when the image is destroyed.