summaryrefslogtreecommitdiffstats
path: root/chart2/source/controller/main/ChartController_TextEdit.cxx
diff options
context:
space:
mode:
authorIngrid Halama <iha@openoffice.org>2003-10-31 16:34:26 +0000
committerIngrid Halama <iha@openoffice.org>2003-10-31 16:34:26 +0000
commit8824f1309e435e9699e5bdef9928facc0536c9d6 (patch)
tree1b73bc53b7e324500e05c18cef970a72c2a4a811 /chart2/source/controller/main/ChartController_TextEdit.cxx
parentchange fill-style of area (and color to different one) (diff)
downloadcore-8824f1309e435e9699e5bdef9928facc0536c9d6.tar.gz
core-8824f1309e435e9699e5bdef9928facc0536c9d6.zip
rebuild after title edit
Diffstat (limited to 'chart2/source/controller/main/ChartController_TextEdit.cxx')
-rw-r--r--chart2/source/controller/main/ChartController_TextEdit.cxx13
1 files changed, 10 insertions, 3 deletions
diff --git a/chart2/source/controller/main/ChartController_TextEdit.cxx b/chart2/source/controller/main/ChartController_TextEdit.cxx
index 57fbebdea837..be2cb68951d5 100644
--- a/chart2/source/controller/main/ChartController_TextEdit.cxx
+++ b/chart2/source/controller/main/ChartController_TextEdit.cxx
@@ -4,6 +4,7 @@
#include "ChartWindow.hxx"
#include "TitleHelper.hxx"
#include "chartview/ObjectIdentifier.hxx"
+#include "macros.hxx"
#include <svx/svdotext.hxx>
@@ -102,10 +103,16 @@ bool ChartController::EndTextEdit()
//Paragraph* pPara =
TitleHelper::setCompleteString( aString, uno::Reference<
::drafts::com::sun::star::chart2::XTitle >::query( xPropSet ), m_xCC );
+ try
+ {
+ //need to rebuild to react on changed size of title
+ impl_rebuildView();
+ }
+ catch( uno::RuntimeException& e)
+ {
+ ASSERT_EXCEPTION( e );
+ }
}
- //we invalidate the outliner region because the outliner has some
- //paint problems (left and right borders are not completly painted)
- m_pChartWindow->Invalidate( m_pDrawViewWrapper->GetMarkedObjBoundRect() );
return true;
}