Changeset 136 for cafu/trunk/CaWE/GuiEditor/ChildFrame.cpp
- Timestamp:
- 08/27/10 11:30:01 (21 months ago)
- Files:
-
- 1 modified
-
cafu/trunk/CaWE/GuiEditor/ChildFrame.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
cafu/trunk/CaWE/GuiEditor/ChildFrame.cpp
r123 r136 496 496 void GuiEditor::ChildFrameT::OnMenuEditDelete(wxCommandEvent& CE) 497 497 { 498 SubmitCommand(new CommandDeleteT(m_GuiDocument, m_GuiDocument->GetSelection())); 498 if (m_GuiDocument->GetSelection().Size()>0) 499 SubmitCommand(new CommandDeleteT(m_GuiDocument, m_GuiDocument->GetSelection())); 499 500 } 500 501 … … 698 699 699 700 case ID_TOOLBAR_WINDOW_DELETE: 700 SubmitCommand(new CommandDeleteT(m_GuiDocument, m_GuiDocument->GetSelection())); 701 if (m_GuiDocument->GetSelection().Size()>0) 702 SubmitCommand(new CommandDeleteT(m_GuiDocument, m_GuiDocument->GetSelection())); 701 703 break; 702 704
