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();