[Libreoffice-commits] .: sc/source
Kohei Yoshida
kohei at kemper.freedesktop.org
Mon Dec 12 11:54:27 PST 2011
sc/source/ui/app/inputwin.cxx | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
New commits:
commit 96692c301d67bd74f9a97f6b998bec6314be1b44
Author: Kohei Yoshida <kohei.yoshida at suse.com>
Date: Mon Dec 12 14:53:58 2011 -0500
Revert "remove lazy init of edit view to fix strange core ( open insert|formula )"
This reverts commit 0262ea0352cee2ecbe231e6f9f7188ce9edbb85c.
diff --git a/sc/source/ui/app/inputwin.cxx b/sc/source/ui/app/inputwin.cxx
index 34a6dd0..649050b 100644
--- a/sc/source/ui/app/inputwin.cxx
+++ b/sc/source/ui/app/inputwin.cxx
@@ -1111,10 +1111,16 @@ ScMultiTextWnd::~ScMultiTextWnd()
void ScMultiTextWnd::Paint( const Rectangle& rRec )
{
+ EditView* pView = GetEditView();
+ if ( pView )
+ pView->Paint( rRec );
+}
+
+EditView* ScMultiTextWnd::GetEditView()
+{
if ( !pEditView )
InitEditEngine( SfxObjectShell::Current() );
- if ( pEditView )
- pEditView->Paint( rRec );
+ return pEditView;
}
long ScMultiTextWnd::GetPixelHeightForLines( long nLines )
More information about the Libreoffice-commits
mailing list