Two bugs detected by Prevent is fixed.
authorYoungki Ahn <ykahn@samsung.com>
Sat, 13 Apr 2013 04:48:54 +0000 (13:48 +0900)
committerYoungki Ahn <ykahn@samsung.com>
Sat, 13 Apr 2013 04:48:54 +0000 (13:48 +0900)
Change-Id: I840d1f34dd03bcb182bb9136897c80b636df51bd
Signed-off-by: Youngki Ahn <ykahn@samsung.com>
src/graphics/text/FGrp_TextTextComposite.cpp [changed mode: 0644->0755]
src/graphics/text/FGrp_TextTextSimpleList.cpp [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index 055bfb1..9dcdf53
@@ -1488,7 +1488,7 @@ TextComposite::DrawWithBaselineWithEllipsis(_CanvasImpl& canvasImpl, FloatRectan
 
                        if (headTextLength <= 0)
                        {
-                               if (pLastDisplayTextElement->IsBackGroundDrawingModeEnable())
+                               if (pLastDisplayTextElement && pLastDisplayTextElement->IsBackGroundDrawingModeEnable())
                                {
                                        r = canvasImpl.FillRectangle(pLastDisplayTextElement->GetBackgroundColor(), FloatRectangle(adjustedRect.x, displayRect.y, abbrevTextDim.width, displayRect.height));
                                        SysTryCatch(NID_GRP, r == E_SUCCESS, , r, "[%s] Propagating.", GetErrorMessage(r));
old mode 100644 (file)
new mode 100755 (executable)
index 07a70f5..6ade06d
@@ -383,10 +383,7 @@ TextSimpleList::DeleteNthObject(SimpleList* pSimpleList, int index)
        delete pNode;
        pNode = null;
 
-       if (pSimpleList)
-       {
-               pSimpleList->nodeCount--;
-       }
+       pSimpleList->nodeCount--;
 
        return pObject;
 }