--- a/idlehomescreen/nativeuicontroller/src/aistatuspanel.cpp Fri Feb 19 22:42:37 2010 +0200
+++ b/idlehomescreen/nativeuicontroller/src/aistatuspanel.cpp Fri Mar 12 15:41:49 2010 +0200
@@ -158,6 +158,9 @@
if( !iTitlePaneText )
{
__PRINTS("XAI: Rendering text to title pane - invalid text, aborting");
+
+ iTextInTitlePane = EFalse;
+
return;
}
@@ -173,6 +176,9 @@
iTitlePaneText = NULL;
UpdatePhoneDisplayInfo( displayText );
+
+ iTextInTitlePane = ETrue;
+
__PRINTS("XAI: Rendering text to title pane - done");
}
@@ -183,6 +189,7 @@
if( iBitmapHandle == KErrNotFound )
{
__PRINTS("XAI: Rendering bitmap to title pane - invalid bitmap handle, aborting");
+
return;
}
@@ -275,6 +282,9 @@
// undetermined stuff could occurr
iBitmapHandle = KErrNotFound;
iMaskHandle = KErrNotFound;
+
+ iTextInTitlePane = EFalse;
+
__PRINTS("XAI: Rendering bitmap to title pane - done");
}
@@ -386,7 +396,7 @@
void CAiStatusPanel::StopTitlePaneScrollingL()
{
// stop scrolling
- if( iTitlePane->Text() )
+ if( iTextInTitlePane && iTitlePane->Text() )
{
iTitlePane->SetTextL( *iTitlePane->Text(), EFalse );
}
@@ -395,7 +405,7 @@
void CAiStatusPanel::ScrollTitlePaneTextL()
{
// start scrolling
- if( iTitlePane->Text() )
+ if ( iTextInTitlePane && iTitlePane->Text() )
{
iTitlePane->SetTextL( *iTitlePane->Text(), ETrue );
}