Kaydet (Commit) 647660cf authored tarafından Caolán McNamara's avatar Caolán McNamara

Resolves: tdf#124919 fontsize grow/shrink unable to use SwShellTableCursor

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: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 2ec293ab
...@@ -251,7 +251,9 @@ void SwTextShell::ExecCharAttrArgs(SfxRequest &rReq) ...@@ -251,7 +251,9 @@ void SwTextShell::ExecCharAttrArgs(SfxRequest &rReq)
const SvxFontHeightItem* pSize( static_cast<const SvxFontHeightItem*>( const SvxFontHeightItem* pSize( static_cast<const SvxFontHeightItem*>(
aSetItem.GetItemOfScript( nScriptTypes ) ) ); aSetItem.GetItemOfScript( nScriptTypes ) ) );
std::vector<std::pair< const SfxPoolItem*, std::unique_ptr<SwPaM> >> vItems; std::vector<std::pair< const SfxPoolItem*, std::unique_ptr<SwPaM> >> 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 // must create new one, otherwise document is without pam
SwPaM* pPaM = rWrtSh.GetCursor(); SwPaM* pPaM = rWrtSh.GetCursor();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment