Commit b4bd181d authored by charras's avatar charras

added missing space in file when saving graphic texts justification

parent 8a5179fc
...@@ -190,7 +190,7 @@ bool LibDrawArc::HitTest( const wxPoint& aRefPos ) ...@@ -190,7 +190,7 @@ bool LibDrawArc::HitTest( const wxPoint& aRefPos )
mindist = 3; // = 3 mils mindist = 3; // = 3 mils
if( abs( dist - m_Rayon ) > mindist ) if( abs( dist - m_Rayon ) > mindist )
return false; return false;
// We are on the circle, ensure we are on the arc, between m_ArcStart and m_ArcEnd // We are on the circle, ensure we are on the arc, between m_ArcStart and m_ArcEnd
int astart = t1; // arc starting point ( in 0.1 degree) int astart = t1; // arc starting point ( in 0.1 degree)
int aend = t2; // arc ending point ( in 0.1 degree) int aend = t2; // arc ending point ( in 0.1 degree)
...@@ -204,7 +204,7 @@ bool LibDrawArc::HitTest( const wxPoint& aRefPos ) ...@@ -204,7 +204,7 @@ bool LibDrawArc::HitTest( const wxPoint& aRefPos )
if( atest >= astart && atest <= aend ) if( atest >= astart && atest <= aend )
return true; return true;
return false; return false;
} }
...@@ -376,6 +376,10 @@ void LibDrawArc::DisplayInfo( WinEDA_DrawFrame* frame ) ...@@ -376,6 +376,10 @@ void LibDrawArc::DisplayInfo( WinEDA_DrawFrame* frame )
} }
/*************************/
/** class LibDrawCircle **/
/*************************/
LibDrawCircle::LibDrawCircle() : LibEDA_BaseStruct( COMPONENT_CIRCLE_DRAW_TYPE ) LibDrawCircle::LibDrawCircle() : LibEDA_BaseStruct( COMPONENT_CIRCLE_DRAW_TYPE )
{ {
m_Rayon = 0; m_Rayon = 0;
...@@ -559,7 +563,7 @@ bool LibDrawText::Save( FILE* ExportFile ) const ...@@ -559,7 +563,7 @@ bool LibDrawText::Save( FILE* ExportFile ) const
else if( m_VJustify == GR_TEXT_VJUSTIFY_TOP ) else if( m_VJustify == GR_TEXT_VJUSTIFY_TOP )
vjustify = 'T'; vjustify = 'T';
fprintf( ExportFile, "%c %c", hjustify, vjustify ); fprintf( ExportFile, " %c %c", hjustify, vjustify );
fprintf( ExportFile, "\n" ); fprintf( ExportFile, "\n" );
...@@ -653,7 +657,7 @@ bool LibDrawText::HitTest( const wxPoint& refPos ) ...@@ -653,7 +657,7 @@ bool LibDrawText::HitTest( const wxPoint& refPos )
bool hit = TextHitTest(refPos); bool hit = TextHitTest(refPos);
m_VJustify = vJustify; m_VJustify = vJustify;
return hit; return hit;
} }
...@@ -854,6 +858,9 @@ EDA_Rect LibDrawSquare::GetBoundingBox() ...@@ -854,6 +858,9 @@ EDA_Rect LibDrawSquare::GetBoundingBox()
} }
/**************************/
/** class LibDrawSegment **/
/**************************/
LibDrawSegment::LibDrawSegment() : LibEDA_BaseStruct( COMPONENT_LINE_DRAW_TYPE ) LibDrawSegment::LibDrawSegment() : LibEDA_BaseStruct( COMPONENT_LINE_DRAW_TYPE )
{ {
m_Width = 0; m_Width = 0;
...@@ -933,6 +940,9 @@ void LibDrawSegment::DisplayInfo( WinEDA_DrawFrame* frame ) ...@@ -933,6 +940,9 @@ void LibDrawSegment::DisplayInfo( WinEDA_DrawFrame* frame )
} }
/***************************/
/** class LibDrawPolyline **/
/***************************/
LibDrawPolyline::LibDrawPolyline() : LibDrawPolyline::LibDrawPolyline() :
LibEDA_BaseStruct( COMPONENT_POLYLINE_DRAW_TYPE ) LibEDA_BaseStruct( COMPONENT_POLYLINE_DRAW_TYPE )
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment