Get rid of FP_TEXTBOX::ViewBBox(). We want to inherit FP_SHAPE's.

This commit is contained in:
Jeff Young 2022-02-01 12:49:28 +00:00
parent 63a3b1e20a
commit 0faf3a8bf5
2 changed files with 0 additions and 14 deletions

View File

@ -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() )

View File

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