This is why I always use "<= 0" not "== 0"...
Although if loops were unsigned that still wouldn't help.
bool DebugScript::Execute(View *view, Screen *scr)
{
- if (currentAction.loops == 0)
+ if (currentAction.loops <= 0)
ParseAction();
switch(currentAction.type)
view->ForceRenderDirty();
view->ForceBufferDirty();
view->ForceBoundsDirty();
- currentAction.loops = 0;
+ currentAction.loops = 1;
break;
default:
Fatal("Unknown script command in queue.");
--- /dev/null
+# Test how well document scales back to original...
+cpu
+nolazy
+loadsvg svg-tests/rabbit_simple.svg
+loop 200 pxzoom 508 305 1
+loadsvg svg-tests/rabbit_simple.svg
+loop 200 pxzoom 508 305 1
+loadsvg svg-tests/rabbit_simple.svg
+loop 400 pxzoom 508 305 -1
+loop 400 pxzoom 508 305 1
+wait