emailuis/uicomponents/src/fscontrolbuttonvisualiser.cpp
branchRCL_3
changeset 10 f5907b1a1053
parent 8 e1b6206813b4
child 12 4ce476e64c59
--- a/emailuis/uicomponents/src/fscontrolbuttonvisualiser.cpp	Fri Feb 19 22:37:30 2010 +0200
+++ b/emailuis/uicomponents/src/fscontrolbuttonvisualiser.cpp	Fri Mar 12 15:41:14 2010 +0200
@@ -1266,8 +1266,11 @@
         }
     if ( iButtonModel->ContainsElement( ECBElemLabelFirstLine ) )
         {
-        iLabelFirstLine->SetSize( text1.Size() );
-        iLabelFirstLine->SetPos( text1.iTl );
+		if ( iLabelFirstLine )
+			{
+			iLabelFirstLine->SetSize( text1.Size() );
+			iLabelFirstLine->SetPos( text1.iTl );
+			}
         }
     if ( iButtonModel->ContainsElement( ECBElemLabelSndLine ) )
         {