sd/source/ui/view/drtxtob1.cxx | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-)
New commits: commit 335891b6b20a90734e2af8bddf9ba535cc3a8e93 Author: Faisal M. Al-Otaibi <fmalota...@kacst.edu.sa> Date: Fri Jun 28 10:54:55 2013 +0200 fix crash when use increase font on table in impress Change-Id: Id6c8cac4543d97657cb66b979f5dc4b5f903473a diff --git a/sd/source/ui/view/drtxtob1.cxx b/sd/source/ui/view/drtxtob1.cxx index 572fbed..6ad4cf1 100644 --- a/sd/source/ui/view/drtxtob1.cxx +++ b/sd/source/ui/view/drtxtob1.cxx @@ -328,15 +328,17 @@ void TextObjectBar::Execute( SfxRequest &rReq ) if( pFontList ) { FuText::ChangeFontSize( nSlot == SID_GROW_FONT_SIZE, pOLV, pFontList, mpView ); + if( pOLV ) + { + SfxItemSet aSet( pOLV->GetEditView().GetAttribs() ); + SfxItemSet aNewAttrs (pOLV->GetEditView().GetEmptyItemSet() ); - SfxItemSet aSet( pOLV->GetEditView().GetAttribs() ); - SfxItemSet aNewAttrs (pOLV->GetEditView().GetEmptyItemSet() ); - - aNewAttrs.Put( aSet.Get( EE_CHAR_FONTHEIGHT ), EE_CHAR_FONTHEIGHT ); - aNewAttrs.Put( aSet.Get( EE_CHAR_FONTHEIGHT_CJK ), EE_CHAR_FONTHEIGHT_CJK ); - aNewAttrs.Put( aSet.Get( EE_CHAR_FONTHEIGHT_CTL ), EE_CHAR_FONTHEIGHT_CTL ); + aNewAttrs.Put( aSet.Get( EE_CHAR_FONTHEIGHT ), EE_CHAR_FONTHEIGHT ); + aNewAttrs.Put( aSet.Get( EE_CHAR_FONTHEIGHT_CJK ), EE_CHAR_FONTHEIGHT_CJK ); + aNewAttrs.Put( aSet.Get( EE_CHAR_FONTHEIGHT_CTL ), EE_CHAR_FONTHEIGHT_CTL ); - mpView->SetAttributes( aNewAttrs ); + mpView->SetAttributes( aNewAttrs ); + } Invalidate(); // to refresh preview (in outline mode), slot has to be invalidated: mpViewShell->GetViewFrame()->GetBindings().Invalidate( SID_PREVIEW_STATE, sal_True, sal_False ); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits