HaikuControlLook: Guard DrawCheckBox drawing state

Change-Id: I625c6379e05bfe6fffbcb5bc2cd77a58251febb7
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10650
Reviewed-by: waddlesplash <[email protected]>
This commit is contained in:
Pascal Abresch
2026-04-04 15:34:03 +00:00
committed by waddlesplash
parent 1d0b703ac1
commit 99b6da1e4a
+2
View File
@@ -464,6 +464,7 @@ HaikuControlLook::DrawCheckBox(BView* view, BRect& rect, const BRect& updateRect
rgb_color markColor;
if (_RadioButtonAndCheckBoxMarkColor(base, markColor, flags)) {
view->PushState();
view->SetHighColor(markColor);
BFont font;
@@ -491,6 +492,7 @@ HaikuControlLook::DrawCheckBox(BView* view, BRect& rect, const BRect& updateRect
view->StrokeLine(rect.LeftTop(), rect.RightBottom());
view->StrokeLine(rect.LeftBottom(), rect.RightTop());
}
view->PopState();
}
}