sw/source/uibase/misc/swruler.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 97b3925354ac4ba9439bcbb5e463e27ddca23507
Author:     Samuel Mehrbrodt <samuel.mehrbr...@allotropia.de>
AuthorDate: Thu Jan 4 14:12:55 2024 +0100
Commit:     Samuel Mehrbrodt <samuel.mehrbr...@allotropia.de>
CommitDate: Mon Jan 8 16:00:50 2024 +0100

    Add some left margin for the comment triangle
    
    Add the same margin to the left as to the right
    
    Change-Id: Iac1865f72c495d911580c06064c4b738607bd15a
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161615
    Tested-by: Jenkins
    Reviewed-by: Samuel Mehrbrodt <samuel.mehrbr...@allotropia.de>

diff --git a/sw/source/uibase/misc/swruler.cxx 
b/sw/source/uibase/misc/swruler.cxx
index 0ccdec2f46a5..59c28e0ca201 100644
--- a/sw/source/uibase/misc/swruler.cxx
+++ b/sw/source/uibase/misc/swruler.cxx
@@ -152,7 +152,7 @@ void SwCommentRuler::DrawCommentControl(vcl::RenderContext& 
rRenderContext)
     // calculate label and arrow positions
     const OUString aLabel = SwResId(STR_COMMENTS_LABEL);
     const tools::Long nTriangleSize = maVirDev->GetTextHeight() / 2 + 1;
-    const tools::Long nTrianglePad = maVirDev->GetTextHeight() / 4;
+    const tools::Long nTrianglePad = maVirDev->GetTextHeight() / 2;
 
     Point aLabelPos(0, (aControlRect.GetHeight() - maVirDev->GetTextHeight()) 
/ 2);
     Point aArrowPos(0, (aControlRect.GetHeight() - nTriangleSize) / 2);
@@ -160,7 +160,7 @@ void SwCommentRuler::DrawCommentControl(vcl::RenderContext& 
rRenderContext)
     if (!AllSettings::GetLayoutRTL()) // | > Comments |
     {
         aArrowPos.setX(nTrianglePad);
-        aLabelPos.setX(aArrowPos.X() + nTriangleSize + nTrianglePad);
+        aLabelPos.setX(aArrowPos.X() + nTriangleSize + nTrianglePad / 2);
     }
     else // RTL => | Comments < |
     {

Reply via email to