Skip to content

Commit 649b8bc

Browse files
committed
Hotfix: clipping plot area to fix zoom in.
1 parent 7c800ca commit 649b8bc

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/chart/rendering/drawdiagram.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,13 @@ void drawDiagram::drawMarkerGuides()
6363

6464
void drawDiagram::drawMarkers()
6565
{
66+
canvas.save();
67+
canvas.setClipRect(coordSys.getRect());
68+
6669
for (const auto &marker : diagram.getMarkers())
6770
drawItem(marker, *this).draw();
71+
72+
canvas.restore();
6873
}
6974

7075
void drawDiagram::drawMarkerLabels()

0 commit comments

Comments
 (0)