diff options
author | Noel Power <noel.power@novell.com> | 2011-12-12 19:12:50 +0000 |
---|---|---|
committer | Noel Power <noel.power@novell.com> | 2011-12-12 19:15:04 +0000 |
commit | 0262ea0352cee2ecbe231e6f9f7188ce9edbb85c (patch) | |
tree | 814072cd6bb42fc2344cb5f0fb12cb830542ca7b /sc | |
parent | f162980219bb6ab01d099eda57897c5b0a9aa6fe (diff) |
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 )
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/app/inputwin.cxx | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/sc/source/ui/app/inputwin.cxx b/sc/source/ui/app/inputwin.cxx index 649050b4eaa5..34a6dd0955d8 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 ) |