diff --git a/pcbnew/footprint.h b/pcbnew/footprint.h index 4a3b89a56f..4e8870052c 100644 --- a/pcbnew/footprint.h +++ b/pcbnew/footprint.h @@ -172,6 +172,11 @@ public: const BOX2I GetBoundingBox() const override; const BOX2I GetBoundingBox( bool aIncludeText, bool aIncludeInvisibleText ) const; + VECTOR2I GetCenter() const override + { + return GetBoundingBox( false, false ).GetCenter(); + } + PCB_FIELDS& Fields() { return m_fields; } const PCB_FIELDS& Fields() const { return m_fields; }