summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorHeiko Tietze <tietze.heiko@gmail.com>2021-07-14 11:25:28 +0200
committerHeiko Tietze <heiko.tietze@documentfoundation.org>2021-07-14 15:26:12 +0200
commit9a8c8053b4fb322edb1e45b891307cdad1f3d41f (patch)
treefaafa99a9d329fb67acd6eca957e25f003e99e3e /sw
parentcf168442ae74837e61939981475068a628fd21ad (diff)
Resolves tdf#113171 - Text box must not toggle command
Change-Id: I1985a377c9b299dce7d3e01d4e67099562008d22 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118888 Tested-by: Jenkins Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/uibase/uiview/viewstat.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/sw/source/uibase/uiview/viewstat.cxx b/sw/source/uibase/uiview/viewstat.cxx
index bacc2f395583..f21772ffe28d 100644
--- a/sw/source/uibase/uiview/viewstat.cxx
+++ b/sw/source/uibase/uiview/viewstat.cxx
@@ -602,6 +602,7 @@ void SwView::GetDrawState(SfxItemSet &rSet)
if ( bWeb )
rSet.DisableItem( nWhich );
else
+ if (nWhich != SID_DRAW_TEXT) //tdf#113171
rSet.Put( SfxBoolItem( nWhich, m_nDrawSfxId == nWhich ) );
break;
@@ -610,6 +611,7 @@ void SwView::GetDrawState(SfxItemSet &rSet)
if ( bWeb || !SvtLanguageOptions().IsVerticalTextEnabled() )
rSet.DisableItem( nWhich );
else
+ if (nWhich != SID_DRAW_TEXT_VERTICAL) //tdf#113171
rSet.Put( SfxBoolItem( nWhich, m_nDrawSfxId == nWhich ) );
break;