Lines Matching refs:currentSegment
208 static DoodleSegment *currentSegment = (DoodleSegment *) NULL;
217 if (currentSegment && event.LeftUp())
219 if (currentSegment->lines.GetCount() == 0)
221 delete currentSegment;
222 currentSegment = (DoodleSegment *) NULL;
229 doc->GetCommandProcessor()->Submit(new DrawingCommand(_T("Add Segment"), DOODLE_ADD, doc, currentSegment));
232 currentSegment = (DoodleSegment *) NULL;
238 if (!currentSegment)
239 currentSegment = new DoodleSegment;
246 currentSegment->lines.Append(newLine);