summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2015-04-29 13:48:06 +0200
committerDavid Tardon <dtardon@redhat.com>2015-04-29 13:48:36 +0200
commit59adad74084e9281887e3f78a225794f37b784d7 (patch)
treed9d17b35cc41688e84035d424c7f316ce57c37e8 /starmath
parentf307a2c56cdc1babab43f24f8094df34dd0f99c6 (diff)
error C2666: 'operator ==' : 2 overloads have similar conversions
Change-Id: I94b54586477ae0cad3b5351953cccffffecbf902
Diffstat (limited to 'starmath')
-rw-r--r--starmath/source/document.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/starmath/source/document.cxx b/starmath/source/document.cxx
index 1e41db81ea96..254677f3286a 100644
--- a/starmath/source/document.cxx
+++ b/starmath/source/document.cxx
@@ -506,7 +506,8 @@ SmCursor& SmDocShell::GetCursor(){
SmPrinterAccess::SmPrinterAccess( SmDocShell &rDocShell )
{
- if ( 0 != (pPrinter = rDocShell.GetPrt()) )
+ pPrinter = rDocShell.GetPrt();
+ if ( pPrinter )
{
pPrinter->Push( PushFlags::MAPMODE );
if ( SfxObjectCreateMode::EMBEDDED == rDocShell.GetCreateMode() )