From 0e6d963fbca16f98a3dbb6ef2fee3736a89d055b Mon Sep 17 00:00:00 2001 From: "Attila Bakos (NISZ)" Date: Fri, 7 May 2021 10:18:01 +0200 Subject: tdf#138141 sw: fix textbox z-order MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Textboxes are implemented as loosely connected shape-text frame pairs. Missing synchronization of their z-orders resulted e.g invisible or only partially visible textbox content using Arrange options with textboxes (see in local menu or on Drawing Object Properties toolbar). Note: because it's not possible to send frames to the background, Arrange->To Background hasn't supported, so likely it's worth to remove that option later from local menu of textboxes. Change-Id: I1aa50903ba55dd5b9e72ef203c4e30218bee68fb Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115227 Tested-by: László Németh Reviewed-by: László Németh --- sw/inc/textboxhelper.hxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sw/inc/textboxhelper.hxx') diff --git a/sw/inc/textboxhelper.hxx b/sw/inc/textboxhelper.hxx index 0db804424332..1c9fdc66e703 100644 --- a/sw/inc/textboxhelper.hxx +++ b/sw/inc/textboxhelper.hxx @@ -107,6 +107,10 @@ public: /// Returns true if the given shape has a valid textframe. static bool isTextBoxShapeHasValidTextFrame(SwFrameFormat* pShape); + // Returns true on success. Synchronize z-order of the text frame of the given textbox + // by setting it one level higher than the z-order of the shape of the textbox. + static bool DoTextBoxZOrderCorrection(SwFrameFormat* pShape); + /** * If we have an associated TextFrame, then return that. * -- cgit