Get rid of FP_TEXTBOX::ViewBBox(). We want to inherit FP_SHAPE's.
This commit is contained in:
parent
63a3b1e20a
commit
0faf3a8bf5
|
@ -237,18 +237,6 @@ EDA_ITEM* FP_TEXTBOX::Clone() const
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
const BOX2I FP_TEXTBOX::ViewBBox() const
|
|
||||||
{
|
|
||||||
EDA_ANGLE angle = GetDrawRotation();
|
|
||||||
EDA_RECT text_area = GetTextBox();
|
|
||||||
|
|
||||||
if( !angle.IsZero() )
|
|
||||||
text_area = text_area.GetBoundingBoxRotated( GetDrawPos(), angle );
|
|
||||||
|
|
||||||
return BOX2I( text_area.GetPosition(), text_area.GetSize() );
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
void FP_TEXTBOX::ViewGetLayers( int aLayers[], int& aCount ) const
|
void FP_TEXTBOX::ViewGetLayers( int aLayers[], int& aCount ) const
|
||||||
{
|
{
|
||||||
if( IsVisible() )
|
if( IsVisible() )
|
||||||
|
|
|
@ -126,8 +126,6 @@ public:
|
||||||
|
|
||||||
virtual wxString GetShownText( int aDepth = 0 ) const override;
|
virtual wxString GetShownText( int aDepth = 0 ) const override;
|
||||||
|
|
||||||
virtual const BOX2I ViewBBox() const override;
|
|
||||||
|
|
||||||
virtual void ViewGetLayers( int aLayers[], int& aCount ) const override;
|
virtual void ViewGetLayers( int aLayers[], int& aCount ) const override;
|
||||||
|
|
||||||
double ViewGetLOD( int aLayer, KIGFX::VIEW* aView ) const override;
|
double ViewGetLOD( int aLayer, KIGFX::VIEW* aView ) const override;
|
||||||
|
|
Loading…
Reference in New Issue