SELECTION_AREA: use abstract render settings object

This commit is contained in:
Tomasz Wlostowski 2018-08-03 14:00:20 +02:00 committed by Jeff Young
parent ef1f01a8bd
commit 9ab79daf74
1 changed files with 1 additions and 2 deletions

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];