CComponentsScrollBar: fix radius for single segment

Radius on top was missed if only one segment is available.
This commit is contained in:
2017-04-21 22:47:23 +02:00
parent ed5e79440a
commit c5451046d4

View File

@@ -183,9 +183,13 @@ void CComponentsScrollBar::initSegments()
}
//set corner types
if (sb_segments_obj->size() == 1){
sb_segments_obj->front()->setCorner(RADIUS_MIN, CORNER_ALL);
}else{
sb_segments_obj->front()->setCorner(RADIUS_MIN, CORNER_TOP);
sb_segments_obj->back()->setCorner(RADIUS_MIN, CORNER_BOTTOM);
}
}
void paintScrollBar( const int &x_pos,