add a new name for the region-layering-editor-action that tells us we were started...
[ardour.git] / libs / pbd / whitespace.cc
index b09d8301031a1de6de6bafc12e4971077eba6f2b..00d47523db184bcfdeaeaaeca5616e0e32c0cb6b 100644 (file)
@@ -17,7 +17,7 @@
 
 */
 
-#include <pbd/whitespace.h>
+#include "pbd/whitespace.h"
 
 using namespace std;
 
@@ -39,7 +39,7 @@ strip_whitespace_edges (string& str)
     /* strip front */
                                        
     for (i = 0; i < len; ++i) {
-        if (isgraph (str[i])) {
+        if (!isspace (str[i])) {
             break;
         }
     }
@@ -62,7 +62,7 @@ strip_whitespace_edges (string& str)
            }
            
            do {
-                   if (isgraph (str[i]) || i == 0) {
+                   if (!isspace (str[i]) || i == 0) {
                            break;
                    }