Fixed text placement tool in FP editor

Fixes: lp:1625304
* https://bugs.launchpad.net/kicad/+bug/1625304
This commit is contained in:
Maciej Suminski 2016-09-20 10:18:44 +02:00
parent bf4e50945a
commit 4bb16afc9e
1 changed files with 1 additions and 1 deletions

View File

@ -232,7 +232,7 @@ int DRAWING_TOOL::PlaceText( const TOOL_EVENT& aEvent )
DialogEditModuleText textDialog( m_frame, textMod, NULL );
bool placing = textDialog.ShowModal() && ( textMod->GetText().Length() > 0 );
if( !placing )
if( placing )
text = textMod;
else
delete textMod;