From 647660cf844f265dd2ad7c78e6cb13844fbf3613 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Thu, 25 Apr 2019 17:22:28 +0100 Subject: Resolves: tdf#124919 fontsize grow/shrink unable to use SwShellTableCursor MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit so if that's active fallback to creating a vector of simple pams Change-Id: I282bd9f9675985ddbd88ba088aee81609e14d101 Reviewed-on: https://gerrit.libreoffice.org/71318 Tested-by: Jenkins Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- sw/source/uibase/shells/txtattr.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sw') diff --git a/sw/source/uibase/shells/txtattr.cxx b/sw/source/uibase/shells/txtattr.cxx index bfde65efa7d2..ad4d7785b33f 100644 --- a/sw/source/uibase/shells/txtattr.cxx +++ b/sw/source/uibase/shells/txtattr.cxx @@ -251,7 +251,9 @@ void SwTextShell::ExecCharAttrArgs(SfxRequest &rReq) const SvxFontHeightItem* pSize( static_cast( aSetItem.GetItemOfScript( nScriptTypes ) ) ); std::vector >> vItems; - if ( pSize ) // selected text has one size + // simple case where selected text has one size and + // (tdf#124919) selection is not multiple table cells + if (pSize && !rWrtSh.IsTableMode()) { // must create new one, otherwise document is without pam SwPaM* pPaM = rWrtSh.GetCursor(); -- cgit