SYMBOL_EDIT_FRAME: fix a better initial zoom when no symbol loaded
This commit is contained in:
parent
3958591333
commit
842c8df4c3
|
@ -1232,8 +1232,12 @@ const BOX2I SYMBOL_EDIT_FRAME::GetDocumentExtents( bool aIncludeAllVisible ) con
|
||||||
{
|
{
|
||||||
if( !m_symbol )
|
if( !m_symbol )
|
||||||
{
|
{
|
||||||
return BOX2I( VECTOR2I( Mils2iu( -100 ), Mils2iu( -100 ) ),
|
// Gives a reasonable drawing area size
|
||||||
VECTOR2I( Mils2iu( 200 ), Mils2iu( 200 ) ) );
|
int width = Millimeter2iu( 50 );
|
||||||
|
int height = Millimeter2iu( 30 );
|
||||||
|
|
||||||
|
return BOX2I( VECTOR2I( -width/2, -height/2 ),
|
||||||
|
VECTOR2I( width, height ) );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue