Re: Undo Segfault
Posted by Rallaz on Jul 04, 2011; 4:57pm
URL: https://forum.librecad.org/Undo-Segfault-tp4547570p4550653.html
I have found the bug in my commit dffcc33cec204ace9280 (11-06-2011), send a pull request.
Eric:
could you test more exhaustively if it is corrected?
Rallaz
PS this is the patch:
do {
if (!( l->undoables.isEmpty()) )
u = l->undoables.first();
+ else
+ u = NULL;
if (u!=NULL) {
// Remove the pointer from _all_ cycles:
for (int i = 0; i < undoList.size(); ++i) {