Keep Mac debugger from crashing with breakpoints in .h files.
This commit is contained in:
parent
d36f189192
commit
7446fba70a
|
@ -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
|
const std::vector<KIGFX::VIEW_ITEM*> SELECTION::updateDrawList() const
|
||||||
{
|
{
|
||||||
std::vector<VIEW_ITEM*> items;
|
std::vector<VIEW_ITEM*> items;
|
||||||
|
|
|
@ -249,23 +249,9 @@ public:
|
||||||
return m_referencePoint != std::nullopt;
|
return m_referencePoint != std::nullopt;
|
||||||
}
|
}
|
||||||
|
|
||||||
VECTOR2I GetReferencePoint() const
|
VECTOR2I GetReferencePoint() const;
|
||||||
{
|
void SetReferencePoint( const VECTOR2I& aP );
|
||||||
if( m_referencePoint )
|
void ClearReferencePoint();
|
||||||
return *m_referencePoint;
|
|
||||||
else
|
|
||||||
return GetBoundingBox().Centre();
|
|
||||||
}
|
|
||||||
|
|
||||||
void SetReferencePoint( const VECTOR2I& aP )
|
|
||||||
{
|
|
||||||
m_referencePoint = aP;
|
|
||||||
}
|
|
||||||
|
|
||||||
void ClearReferencePoint()
|
|
||||||
{
|
|
||||||
m_referencePoint = std::nullopt;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks if all items in the selection are the same KICAD_T type
|
* Checks if all items in the selection are the same KICAD_T type
|
||||||
|
|
Loading…
Reference in New Issue