--- a/uiacceltk/hitchcock/coretoolkit/src/huicanvaswshwgc.cpp Tue May 11 17:03:00 2010 +0300
+++ b/uiacceltk/hitchcock/coretoolkit/src/huicanvaswshwgc.cpp Tue May 25 13:39:57 2010 +0300
@@ -1906,12 +1906,15 @@
if (aUpdateDisplay && renderbuffer && iCanvasGc->Gc())
{
THuiRealRect updatedRect = aUpdateRegion.BoundingRect();
-
+ TInt w;
+ TInt h ;
// Handle relative rotation
- TRect displayArea = iVisual->Display()->VisibleArea();
- TInt w = displayArea.Width();
- TInt h = displayArea.Height();
-
+ if (iVisual->Display())
+ {
+ TRect displayArea = iVisual->Display()->VisibleArea();
+ w = displayArea.Width();
+ h = displayArea.Height();
+ }
// ...select right rotation...
if (iRelativeOrientation == CHuiGc::EOrientationCW90)
{