Browse Source

Timeline: Don't die when undo function is used when no project is open or when there is nothing left to undo.

tags/non-daw-v1.2.0
Jonathan Moore Liles 9 years ago
parent
commit
57653d5cdf
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      nonlib/Loggable.C

+ 4
- 0
nonlib/Loggable.C View File

@@ -484,6 +484,10 @@ Loggable::do_this ( const char *s, bool reverse )
void
Loggable::undo ( void )
{
if ( ! _fp || /* journal not open */
1 == _undo_offset ) /* nothing left to undo */
return;

char *buf;

block_start();


Loading…
Cancel
Save