Skip to content

Commit 3d37874

Browse files
committed
misc: fix inconcistency of drawn annotations
1 parent b32d9f0 commit 3d37874

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/screenshot_tool.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1462,12 +1462,12 @@ void ScreenshotTool::DrawAnnotations()
14621462
}
14631463
};
14641464

1465-
// Render current annotation being drawn
1466-
if (m_is_drawing)
1467-
draw_annotation(m_current_annotation);
1468-
14691465
for (const annotation_t& ann : m_annotations)
14701466
draw_annotation(ann);
1467+
1468+
// Render current annotation being drawn on top of committed ones
1469+
if (m_is_drawing)
1470+
draw_annotation(m_current_annotation);
14711471
}
14721472

14731473
void ScreenshotTool::Cancel()

0 commit comments

Comments
 (0)