void csCanvas::DrawOutline(wxDC& dc, double x1, double y1, double x2, double y2)
{
- wxPen dottedPen(wxColour(0, 0, 0), 1, wxDOT);
+ wxPen dottedPen(*wxBLACK, 1, wxDOT);
dc.SetPen(dottedPen);
dc.SetBrush(* wxTRANSPARENT_BRUSH);
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();