X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/55c91e8a3faff8a1f4e758bbb64c28d1743c66c8..298a3f2ee8a54964a8ba79931a9a5b1d8be200b4:/contrib/samples/ogl/studio/view.cpp diff --git a/contrib/samples/ogl/studio/view.cpp b/contrib/samples/ogl/studio/view.cpp index 5a157a8704..9fac0a9b07 100644 --- a/contrib/samples/ogl/studio/view.cpp +++ b/contrib/samples/ogl/studio/view.cpp @@ -877,6 +877,9 @@ void csCanvas::OnLeftClick(double x, double y, int WXUNUSED(keys)) 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()); @@ -888,8 +891,9 @@ void csCanvas::OnLeftClick(double x, double y, int WXUNUSED(keys)) return; } - wxString newLabel = dialog->GetShapeLabel(); + newLabel = dialog->GetShapeLabel(); dialog->Destroy(); +#endif // wxUSE_WX_RESOURCES wxShape* shape = new csTextBoxShape; shape->AssignNewIds();