svx/source/sdr/contact/viewcontactofsdrpage.cxx |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit f05bc0cf6c9fdba682a0aee4e3a06b093ae345da
Author:     Regina Henschel <rb.hensc...@t-online.de>
AuthorDate: Fri Feb 9 15:02:41 2024 +0100
Commit:     Xisco Fauli <xiscofa...@libreoffice.org>
CommitDate: Mon Feb 12 11:48:37 2024 +0100

    tdf#156993 use correct count for ViewContactOfSdrPage
    
    The count is used as upper limit in a for-loop in
    ViewObjectContact::getPrimitive2DSequenceSubHierarchy().
    That calls ViewContactOfSdrPage::GetViewContact().
    With the wrong count the case 10 was not reached and thus the helplines
    were not drawn.
    
    Change-Id: If606bbb718b1f78a874862217d1e03b02287e848
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/163192
    Tested-by: Jenkins
    Reviewed-by: Regina Henschel <rb.hensc...@t-online.de>
    (cherry picked from commit 56517d8a38459f5a9e67327c1ac0dc8bcd07bcb8)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/163180
    Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org>

diff --git a/svx/source/sdr/contact/viewcontactofsdrpage.cxx 
b/svx/source/sdr/contact/viewcontactofsdrpage.cxx
index 43ca1fd5c06f..dfef01d30410 100644
--- a/svx/source/sdr/contact/viewcontactofsdrpage.cxx
+++ b/svx/source/sdr/contact/viewcontactofsdrpage.cxx
@@ -515,10 +515,10 @@ sal_uInt32 ViewContactOfSdrPage::GetObjectCount() const
 {
     // Fixed count of content. It contains PageBackground (Wiese), PageShadow, 
PageFill,
     // then - depending on if the page has a MasterPage - either MasterPage 
Hierarchy
-    // or MPBGO. Also OuterPageBorder, InnerPageBorder and two pairs of Grid 
and Helplines
-    // (for front and back) which internally are visible or not depending on 
the current
+    // or MPBGO. Also OuterPageBorder, InnerPageBorder, PageHierarchy and two 
pairs of Grid and
+    // Helplines (for front and back) which internally are visible or not 
depending on the current
     // front/back setting for those.
-    return 10;
+    return 11;
 }
 
 ViewContact& ViewContactOfSdrPage::GetViewContact(sal_uInt32 nIndex) const

Reply via email to