Change-Id: I2032639824d63da04b25539dc361183dc7d97e2e
}
DrawBitmap();
- DrawText();
+
+ if (!__pButton->GetText().IsEmpty())
+ {
+ DrawText();
+ }
if (__showUnderlineBitmap && __pButton->GetToolbarItemBackgroundBitmap(status) == null)
{
delete pCanvas;
delete pReplacementColorBackgroundBitmap;
+ delete pHighlightedReplacementColorBackgroundBitmap;
return;
}
_LabelPresenter::Draw(void)
{
DrawBackground();
- DrawText();
+
+ if (!__pLabel->GetText().IsEmpty())
+ {
+ DrawText();
+ }
return;
}
void
_LabelPresenter::DrawText(void)
{
- if (__pLabel->GetText().IsEmpty())
- {
- SysLog(NID_UI_CTRL, "Text is empty.");
-
- return;
- }
-
TextObjectAlignment horizontalAlign = TEXT_OBJECT_ALIGNMENT_CENTER;
TextObjectAlignment verticalAlign = TEXT_OBJECT_ALIGNMENT_MIDDLE;