[xiph-commits] r12271 - trunk/sushivision
xiphmont at svn.xiph.org
xiphmont at svn.xiph.org
Sat Dec 30 19:17:07 PST 2006
Author: xiphmont
Date: 2006-12-30 19:17:06 -0800 (Sat, 30 Dec 2006)
New Revision: 12271
Modified:
trunk/sushivision/undo.c
Log:
Correct a bug in undo/redo where undo prematurely popped elements off the stack
Modified: trunk/sushivision/undo.c
===================================================================
--- trunk/sushivision/undo.c 2006-12-31 03:07:47 UTC (rev 12270)
+++ trunk/sushivision/undo.c 2006-12-31 03:17:06 UTC (rev 12271)
@@ -47,9 +47,6 @@
fprintf(stderr,"Internal error: undo suspend refcount count < 0\n");
p->sushi->private->undo_suspend=0;
}
-
- //if(p->sushi->private->undo_suspend==0)
- //_sushiv_panel_undo_log(p);
}
void _sushiv_panel_undo_log(sushiv_panel_t *p){
@@ -138,8 +135,9 @@
if(!p->sushi->private->undo_stack)return;
if(!p->sushi->private->undo_level)return;
-
- _sushiv_panel_undo_log(p);
+
+ if(!p->sushi->private->undo_stack[p->sushi->private->undo_level+1])
+ _sushiv_panel_undo_log(p);
p->sushi->private->undo_level--;
_sushiv_panel_undo_suspend(p);
More information about the commits
mailing list