void csDiagramView::OnPasteUpdate(wxUpdateUIEvent& event)
{
- /* csDiagramDocument *doc = */ (csDiagramDocument *)GetDocument();
-
int n = wxGetApp().GetDiagramClipboard().GetCount();
event.Enable( (n > 0) );
if (palette->GetSelection() == PALETTE_TEXT_TOOL)
{
+ wxString newLabel;
+
+#if wxUSE_WX_RESOURCES
// Ask for a label and create a new free-floating text region
csLabelEditingDialog* dialog = new csLabelEditingDialog(GetParent());
return;
}
- wxString newLabel = dialog->GetShapeLabel();
+ newLabel = dialog->GetShapeLabel();
dialog->Destroy();
+#endif // wxUSE_WX_RESOURCES
wxShape* shape = new csTextBoxShape;
shape->AssignNewIds();