summaryrefslogtreecommitdiff
path: root/sw/source/core
diff options
context:
space:
mode:
authorAttila Bakos (NISZ) <bakos.attilakaroly@nisz.hu>2020-09-28 11:47:20 +0200
committerLászló Németh <nemeth@numbertext.org>2020-10-06 08:31:16 +0200
commite2a2165f27d2e5f9b6ac2d349e8b588921667ba4 (patch)
treeb7b682009659dcf9095a20a8f2eb3cb0abc2b46d /sw/source/core
parent93c833e848a4406f36bcb7925928554bb104aa32 (diff)
tdf#107893 sw: fix broken "Add Text Box" after Undo
Adding text frame to a shape by "Add Text Box" menu item of its local menu and undoing the text frame by Undo resulted inoperative "Add Text Box", i.e. it was not possible to readd the text frame. Change-Id: Id871cecf9682cec040e9db7a0a3a68262c505833 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103541 Tested-by: Jenkins Reviewed-by: László Németh <nemeth@numbertext.org>
Diffstat (limited to 'sw/source/core')
-rw-r--r--sw/source/core/doc/textboxhelper.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/doc/textboxhelper.cxx b/sw/source/core/doc/textboxhelper.cxx
index 0f095c7ab71c..15d80ea1ca93 100644
--- a/sw/source/core/doc/textboxhelper.cxx
+++ b/sw/source/core/doc/textboxhelper.cxx
@@ -52,7 +52,7 @@ using namespace com::sun::star;
void SwTextBoxHelper::create(SwFrameFormat* pShape)
{
// If TextBox wasn't enabled previously
- if (pShape->GetAttrSet().HasItem(RES_CNTNT))
+ if (pShape->GetAttrSet().HasItem(RES_CNTNT) && pShape->GetOtherTextBoxFormat())
return;
// Create the associated TextFrame and insert it into the document.