[Libreoffice-commits] .: sc/source

Noel Power noelp at kemper.freedesktop.org
Mon Dec 12 11:16:18 PST 2011


 sc/source/ui/app/inputwin.cxx |   10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)

New commits:
commit 0262ea0352cee2ecbe231e6f9f7188ce9edbb85c
Author: Noel Power <noel.power at novell.com>
Date:   Mon Dec 12 19:12:50 2011 +0000

    remove lazy init of edit view to fix strange core ( open insert|formula )
    
    I didn't quite get it, valgrind didn't show a sensible trace but this fixes the core ( also according to valgrind )

diff --git a/sc/source/ui/app/inputwin.cxx b/sc/source/ui/app/inputwin.cxx
index 649050b..34a6dd0 100644
--- a/sc/source/ui/app/inputwin.cxx
+++ b/sc/source/ui/app/inputwin.cxx
@@ -1111,16 +1111,10 @@ ScMultiTextWnd::~ScMultiTextWnd()
 
 void ScMultiTextWnd::Paint( const Rectangle& rRec )
 {
-    EditView* pView = GetEditView();
-    if ( pView )
-        pView->Paint( rRec );
-}
-
-EditView* ScMultiTextWnd::GetEditView()
-{
     if ( !pEditView )
         InitEditEngine( SfxObjectShell::Current() );
-    return pEditView;
+    if ( pEditView )
+        pEditView->Paint( rRec );
 }
 
 long ScMultiTextWnd::GetPixelHeightForLines( long nLines )


More information about the Libreoffice-commits mailing list