diff options
author | Noel Grandin <noel@peralex.com> | 2015-04-09 15:24:21 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-04-10 09:48:06 +0200 |
commit | 89dd3f80685c66883b6ed4efbf369f5aa2dc292e (patch) | |
tree | 6edf1a741d079c88799df9219270798affd2ffa5 /starmath/source/cursor.cxx | |
parent | 84482f5193ff0738563b6e91f66fc95fbc145de3 (diff) |
convert SfxObjectCreateMode to scoped enum
and fix some dodgy usage in /sc in the process
Change-Id: Ia2bee267df31aba431fc8cb81195bb83e5b64deb
Diffstat (limited to 'starmath/source/cursor.cxx')
-rw-r--r-- | starmath/source/cursor.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/starmath/source/cursor.cxx b/starmath/source/cursor.cxx index cd5bbc01da5d..de483e5d196a 100644 --- a/starmath/source/cursor.cxx +++ b/starmath/source/cursor.cxx @@ -1455,7 +1455,7 @@ void SmCursor::EndEdit(){ //TODO: Consider copying the update accessability code from SmDocShell::SetText in here... //This somehow updates the size of SmGraphicView if it is running in embedded mode - if( pDocShell->GetCreateMode() == SFX_CREATE_MODE_EMBEDDED ) + if( pDocShell->GetCreateMode() == SfxObjectCreateMode::EMBEDDED ) pDocShell->OnDocumentPrinterChanged(0); //Request a replaint... @@ -1473,7 +1473,7 @@ void SmCursor::EndEdit(){ void SmCursor::RequestRepaint(){ SmViewShell *pViewSh = SmGetActiveView(); if( pViewSh ) { - if ( SFX_CREATE_MODE_EMBEDDED == pDocShell->GetCreateMode() ) + if ( SfxObjectCreateMode::EMBEDDED == pDocShell->GetCreateMode() ) pDocShell->Repaint(); else pViewSh->GetGraphicWindow().Invalidate(); |