From 4bb16afc9ed0244b6db7b7077c7459e0bdcc60d1 Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Tue, 20 Sep 2016 10:18:44 +0200 Subject: [PATCH] Fixed text placement tool in FP editor Fixes: lp:1625304 * https://bugs.launchpad.net/kicad/+bug/1625304 --- pcbnew/tools/drawing_tool.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcbnew/tools/drawing_tool.cpp b/pcbnew/tools/drawing_tool.cpp index 8215c0f60b..3ee8c22db5 100644 --- a/pcbnew/tools/drawing_tool.cpp +++ b/pcbnew/tools/drawing_tool.cpp @@ -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;