Behavior of _BitmapImpl::CheckNinePatchedBitmapStrictly() API is changed in order...
authorhoonik.lee <hoonik.lee@samsung.com>
Tue, 9 Apr 2013 10:46:52 +0000 (19:46 +0900)
committerhoonik.lee <hoonik.lee@samsung.com>
Tue, 9 Apr 2013 10:46:52 +0000 (19:46 +0900)
Change-Id: I90566b21277f4f419d67f9d1a636b2cd407b0f12
Signed-off-by: hoonik.lee <hoonik.lee@samsung.com>
src/graphics/FGrp_BitmapImpl.cpp

index 7e1ce90..5842881 100755 (executable)
@@ -1728,6 +1728,11 @@ _BitmapImpl::CheckNinePatchedBitmapStrictly(const Bitmap& bitmap)
                return false;
        }
 
+       if (pThis->_sharedItem->associated.hasBeenDetectedByUsingName)
+       {
+               return pThis->_sharedItem->associated.determinedNinePatchedAtFirst;
+       }
+
        const Tizen::Base::String& associatedFileName = pThis->_sharedItem->associated.fileName;
 
        if (associatedFileName.IsEmpty())
@@ -1738,7 +1743,12 @@ _BitmapImpl::CheckNinePatchedBitmapStrictly(const Bitmap& bitmap)
        }
        else
        {
-               return HasNinePatchedBitmapTag(associatedFileName);
+               bool ret = HasNinePatchedBitmapTag(associatedFileName);
+
+               pThis->_sharedItem->associated.hasBeenDetectedByUsingName = true;
+               pThis->_sharedItem->associated.determinedNinePatchedAtFirst = ret;
+
+               return ret;
        }
 }