summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRadek Doulik <rodo@novell.com>2011-04-27 20:08:22 +0200
committerPetr Mladek <pmladek@suse.cz>2011-04-27 20:08:22 +0200
commit7cdffe22320808cd80f6126e4437bb7b9b025846 (patch)
treebd18d78f3c2f6665f8db8623a775edf89fc0514e
parent35dfca9ec31252f7af894a8af0e10178e72df985 (diff)
svx-sdrobjeditview-update-edit-area.diff: edit area calcualtion
update before setting output area so that aTextEditArea can be recalculated (bnc#305205, bnc#347355)
-rw-r--r--svx/source/svdraw/svdedxv.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/svx/source/svdraw/svdedxv.cxx b/svx/source/svdraw/svdedxv.cxx
index bd6874ea0d..5fccd8d599 100644
--- a/svx/source/svdraw/svdedxv.cxx
+++ b/svx/source/svdraw/svdedxv.cxx
@@ -454,8 +454,9 @@ OutlinerView* SdrObjEditView::ImpMakeOutlinerView(Window* pWin, sal_Bool /*bNoPa
pOutlView->SetAnchorMode((EVAnchorMode)(pText->GetOutlinerViewAnchorMode()));
pTextEditOutliner->SetFixedCellHeight(((const SdrTextFixedCellHeightItem&)pText->GetMergedItem(SDRATTR_TEXT_USEFIXEDCELLHEIGHT)).GetValue());
}
- pOutlView->SetOutputArea(aTextEditArea);
+ // do update before setting output area so that aTextEditArea can be recalculated
pTextEditOutliner->SetUpdateMode(sal_True);
+ pOutlView->SetOutputArea(aTextEditArea);
ImpInvalidateOutlinerView(*pOutlView);
return pOutlView;
}