webengine/osswebengine/WebCore/platform/symbian/FontSymbian.cpp
branchRCL_3
changeset 49 919f36ff910f
parent 48 79859ed3eea9
--- a/webengine/osswebengine/WebCore/platform/symbian/FontSymbian.cpp	Tue Aug 31 16:17:46 2010 +0300
+++ b/webengine/osswebengine/WebCore/platform/symbian/FontSymbian.cpp	Wed Sep 01 12:28:30 2010 +0100
@@ -25,7 +25,7 @@
 #include "IntRect.h"
 #include "WebCoreGraphicsContext.h"
 #include <e32std.h>
-#include <bitstd.h>
+#include <BITSTD.H>
 #include <gdi.h>
 #include "StaticObjectsContainer.h"
 #include "PictographSymbian.h"
@@ -65,8 +65,9 @@
     PlatformFontCache* cache = StaticObjectsContainer::instance()->fontCache();
     CFont* font = cache->zoomedFont(m_fontDescription, cache->fontZoomFactor());
     // RenderBlock::layoutColumns create a 0 platform context to do a faked paint
+
     // during layout - weird stuff :)
-    if (!graphicsContext->platformContext())
+    if (!graphicsContext || !graphicsContext->platformContext())
         return;
 
     CFbsBitGc& bitgc = graphicsContext->platformContext()->gc();