https://bugs.documentfoundation.org/show_bug.cgi?id=93292

nutka <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #11 from nutka <[email protected]> ---
Tested on Windows 7 & 11 with 24.2.5.2: 

- window docked at the top --> incorrect "Hide" arrow
- window docked at the bottom --> incorrect "Show" arrow

(cf. the attached file with screenshots taken in Draw, Development Tools
window).



The source code,
file: /core/vcl/source/window/splitwin.cxx, ImplDrawGrip()

Line 1513 reads:

aPoly.SetPoint(Point(nCenter - nHeightHalf, nBottom - nMargin), 2);

Shouldn't that be (for a triangle):

aPoly.SetPoint(Point(nCenter + nHeightHalf, nBottom - nMargin), 2);


-----------

1464  void SplitWindow::ImplDrawGrip(vcl::RenderContext& rRenderContext, 
                                     const tools::Rectangle& rRect,
                                     bool bHorizontal, bool bLeft)
...
1503   tools::Polygon aPoly(3);
1504
1505   if (bHorizontal)
1506   {
1507       tools::Long nCenter = nLeft + nWidthHalf;
1508
1509       if (bLeft)
1510       {
1511           aPoly.SetPoint(Point(nCenter,               nTop    + nMargin),
0);
1512           aPoly.SetPoint(Point(nCenter - nHeightHalf, nBottom - nMargin),
1);
1513           aPoly.SetPoint(Point(nCenter - nHeightHalf, nBottom - nMargin),
2);
1514       }
1515       else
1516       {
1517           aPoly.SetPoint(Point(nCenter,               nBottom - nMargin),
0);
1518           aPoly.SetPoint(Point(nCenter - nHeightHalf, nTop    + nMargin),
1);
1519           aPoly.SetPoint(Point(nCenter + nHeightHalf, nTop    + nMargin),
2);
1520       }
1521       rRenderContext.DrawPolygon(aPoly);
1522   }

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to