ColumnListView: preserve view high color

This commit is contained in:
John Scipione
2014-12-02 19:23:52 -05:00
parent 86ebf4c755
commit 73b596224c
+5 -2
View File
@@ -1547,8 +1547,6 @@ BColumnListView::DrawLatch(BView* view, BRect rect, LatchType position, BRow*)
{
const int32 rectInset = 4;
view->SetHighColor(0, 0, 0);
// make square
int32 sideLen = rect.IntegerWidth();
if (sideLen > rect.IntegerHeight())
@@ -1575,6 +1573,9 @@ BColumnListView::DrawLatch(BView* view, BRect rect, LatchType position, BRow*)
itemRect.bottom += 1;
}
rgb_color highColor = view->HighColor();
view->SetHighColor(0, 0, 0);
switch (position) {
case B_OPEN_LATCH:
view->StrokeRect(itemRect);
@@ -1618,6 +1619,8 @@ BColumnListView::DrawLatch(BView* view, BRect rect, LatchType position, BRow*)
// No drawing
break;
}
view->SetHighColor(highColor);
}