Mercurial > hg > svgui
comparison layer/TextLayer.cpp @ 307:a66ff2059dae
* Add image layer icon (from GIMP)
* If you cancel the dialog that pops up when you click to insert a new
image or text point, ensure that the point is not added
author | Chris Cannam |
---|---|
date | Fri, 05 Oct 2007 16:31:30 +0000 |
parents | cd2492c5fe45 |
children | c0b9eec70639 |
comparison
equal
deleted
inserted
replaced
306:90b9cfb5b0bb | 307:a66ff2059dae |
---|---|
440 | 440 |
441 if (ok) { | 441 if (ok) { |
442 TextModel::RelabelCommand *command = | 442 TextModel::RelabelCommand *command = |
443 new TextModel::RelabelCommand(m_model, m_editingPoint, label); | 443 new TextModel::RelabelCommand(m_model, m_editingPoint, label); |
444 m_editingCommand->addCommand(command); | 444 m_editingCommand->addCommand(command); |
445 } else { | |
446 m_editingCommand->deletePoint(m_editingPoint); | |
445 } | 447 } |
446 | 448 |
447 m_editingCommand->finish(); | 449 m_editingCommand->finish(); |
448 m_editingCommand = 0; | 450 m_editingCommand = 0; |
449 m_editing = false; | 451 m_editing = false; |