summaryrefslogtreecommitdiff
path: root/sw/source/uibase/shells/drawsh.cxx
diff options
context:
space:
mode:
authorAttila Bakos (NISZ) <bakos.attilakaroly@nisz.hu>2020-10-28 15:11:08 +0100
committerLászló Németh <nemeth@numbertext.org>2020-11-20 22:15:54 +0100
commitae8bc80952fafc791ce8bbddd99c99626a93989c (patch)
treeb8efbf55e0c71456e65a626c91e2d0c8a1e89404 /sw/source/uibase/shells/drawsh.cxx
parente414ea3514e4014893e553911e7f53a9885ef1d9 (diff)
tdf#137185 sw: move shape text on adding textbox
The original text of the shape is moved to the new (text frame of the) text box instead of overlapping the text content added later. Change-Id: I2ad8865cdbe3c424c70985737ecda3ac9315cabc Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104942 Tested-by: László Németh <nemeth@numbertext.org> Reviewed-by: László Németh <nemeth@numbertext.org>
Diffstat (limited to 'sw/source/uibase/shells/drawsh.cxx')
-rw-r--r--sw/source/uibase/shells/drawsh.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/uibase/shells/drawsh.cxx b/sw/source/uibase/shells/drawsh.cxx
index 0f2c454da5d8..080f3221dd4e 100644
--- a/sw/source/uibase/shells/drawsh.cxx
+++ b/sw/source/uibase/shells/drawsh.cxx
@@ -351,7 +351,7 @@ void SwDrawShell::Execute(SfxRequest &rReq)
{
SwFrameFormat* pFrameFormat = ::FindFrameFormat(pObj);
if (pFrameFormat)
- SwTextBoxHelper::create(pFrameFormat);
+ SwTextBoxHelper::create(pFrameFormat, pObj->HasText());
}
break;
}