diff --git a/common/preview_items/polygon_item.cpp b/common/preview_items/polygon_item.cpp index 3802b186cb..d7d5d79297 100644 --- a/common/preview_items/polygon_item.cpp +++ b/common/preview_items/polygon_item.cpp @@ -31,6 +31,7 @@ using namespace KIGFX::PREVIEW; +const double POLYGON_ITEM::POLY_LINE_WIDTH = 150000.0; POLYGON_ITEM::POLYGON_ITEM(): SIMPLE_OVERLAY_ITEM() @@ -60,12 +61,14 @@ void POLYGON_ITEM::drawPreviewShape( KIGFX::VIEW* aView ) const auto& gal = *aView->GetGAL(); auto rs = static_cast( aView->GetPainter()->GetSettings() ); + gal.SetLineWidth( POLY_LINE_WIDTH ); gal.DrawPolyline( m_lockedChain ); - gal.DrawPolygon( m_polyfill ); // draw the leader line in a different color gal.SetStrokeColor( rs->GetLayerColor( LAYER_AUX_ITEMS ) ); gal.DrawPolyline( m_leaderChain ); + + gal.DrawPolygon( m_polyfill ); } diff --git a/include/preview_items/polygon_item.h b/include/preview_items/polygon_item.h index 61d59a9b3a..67a10f68ef 100644 --- a/include/preview_items/polygon_item.h +++ b/include/preview_items/polygon_item.h @@ -75,6 +75,8 @@ private: ///> polygon fill SHAPE_POLY_SET m_polyfill; + + static const double POLY_LINE_WIDTH; }; } // PREVIEW