summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorAttila Bakos (NISZ) <bakos.attilakaroly@nisz.hu>2021-05-07 10:18:01 +0200
committerLászló Németh <nemeth@numbertext.org>2021-05-25 13:06:22 +0200
commit0e6d963fbca16f98a3dbb6ef2fee3736a89d055b (patch)
treee1a413ce8f1307cbbcd8cf96af1d130dcce3a469 /svx
parentb2f7187e04a6b6c6183b42230a0119569f069dcf (diff)
tdf#138141 sw: fix textbox z-order
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 <nemeth@numbertext.org> Reviewed-by: László Németh <nemeth@numbertext.org>
Diffstat (limited to 'svx')
-rw-r--r--svx/source/svdraw/svdpage.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/svx/source/svdraw/svdpage.cxx b/svx/source/svdraw/svdpage.cxx
index adcbb8f713f6..c1d412a7c207 100644
--- a/svx/source/svdraw/svdpage.cxx
+++ b/svx/source/svdraw/svdpage.cxx
@@ -769,7 +769,10 @@ size_t SdrObjList::GetObjCount() const
SdrObject* SdrObjList::GetObj(size_t nNum) const
{
- return maList[nNum];
+ if (nNum < maList.size())
+ return maList[nNum];
+
+ return nullptr;
}