SELECTION_AREA: use abstract render settings object

This commit is contained in:
Tomasz Wlostowski
2018-10-09 11:08:52 +01:00
committed by Jeff Young
parent ef1f01a8bd
commit 9ab79daf74
+1 -2
View File
@@ -99,8 +99,7 @@ const BOX2I SELECTION_AREA::ViewBBox() const
void SELECTION_AREA::ViewDraw( int aLayer, KIGFX::VIEW* aView ) const
{
auto& gal = *aView->GetGAL();
auto rs = static_cast<PCB_RENDER_SETTINGS*>( aView->GetPainter()->GetSettings() );
auto rs = aView->GetPainter()->GetSettings();
const auto& scheme = rs->IsBackgroundDark() ? selectionColorScheme[0] : selectionColorScheme[1];