Don't rely on the penWidth already being set when setting the dash style.

Fixes https://gitlab.com/kicad/code/kicad/issues/11908
This commit is contained in:
Jeff Young
2022-06-29 07:34:45 -06:00
parent 4a8aaefdc0
commit dbbdc9d2e6
17 changed files with 111 additions and 89 deletions
+4 -4
View File
@@ -153,7 +153,7 @@ public:
virtual void SetColor( const COLOR4D& color ) = 0;
virtual void SetDash( PLOT_DASH_TYPE dashed ) = 0;
virtual void SetDash( int aLineWidth, PLOT_DASH_TYPE aLineStyle ) = 0;
virtual void SetCreator( const wxString& aCreator ) { m_creator = aCreator; }
@@ -570,11 +570,11 @@ protected:
*/
virtual double userToDeviceSize( double size ) const;
double GetDotMarkLenIU() const;
double GetDotMarkLenIU( int aLineWidth ) const;
double GetDashMarkLenIU() const;
double GetDashMarkLenIU( int aLineWidth ) const;
double GetDashGapLenIU() const;
double GetDashGapLenIU( int aLineWidth ) const;
protected: // variables used in most of plotters:
/// Plot scale - chosen by the user (even implicitly with 'fit in a4')