Keep Mac debugger from crashing with breakpoints in .h files.

(cherry picked from commit 7446fba70a)
This commit is contained in:
Jeff Young 2024-02-15 16:27:24 +00:00 committed by Roberto Fernandez Bautista
parent 898f60ea2f
commit 73b6b19a4e
2 changed files with 24 additions and 17 deletions

View File

@ -167,6 +167,27 @@ size_t SELECTION::CountType( KICAD_T aType ) const
}
VECTOR2I SELECTION::GetReferencePoint() const
{
if( m_referencePoint )
return *m_referencePoint;
else
return GetBoundingBox().Centre();
}
void SELECTION::SetReferencePoint( const VECTOR2I& aP )
{
m_referencePoint = aP;
}
void SELECTION::ClearReferencePoint()
{
m_referencePoint = std::nullopt;
}
const std::vector<KIGFX::VIEW_ITEM*> SELECTION::updateDrawList() const
{
std::vector<VIEW_ITEM*> items;

View File

@ -249,23 +249,9 @@ public:
return m_referencePoint != std::nullopt;
}
VECTOR2I GetReferencePoint() const
{
if( m_referencePoint )
return *m_referencePoint;
else
return GetBoundingBox().Centre();
}
void SetReferencePoint( const VECTOR2I& aP )
{
m_referencePoint = aP;
}
void ClearReferencePoint()
{
m_referencePoint = std::nullopt;
}
VECTOR2I GetReferencePoint() const;
void SetReferencePoint( const VECTOR2I& aP );
void ClearReferencePoint();
/**
* Checks if all items in the selection are the same KICAD_T type