diff options
-rw-r--r-- | src/data/stylelist.cpp | 2 | ||||
-rw-r--r-- | tikzlexer.h | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/data/stylelist.cpp b/src/data/stylelist.cpp index 14302c7..bc2ef37 100644 --- a/src/data/stylelist.cpp +++ b/src/data/stylelist.cpp @@ -51,7 +51,7 @@ void StyleList::removeNthStyle(int n) void StyleList::clear() { int n = numInCategory(); - if (n > 0) { + if (n > 1) { beginRemoveRows(QModelIndex(), 1, n - 1); _styles.clear(); if (_edgeStyles) _styles << noneEdgeStyle; diff --git a/tikzlexer.h b/tikzlexer.h index 438947f..8169c03 100644 --- a/tikzlexer.h +++ b/tikzlexer.h @@ -2,9 +2,9 @@ #define yyHEADER_H 1 #define yyIN_HEADER 1 -#line 6 "tikzlexer.h" +#line 5 "tikzlexer.h" -#line 8 "tikzlexer.h" +#line 7 "tikzlexer.h" #define YY_INT_ALIGNED short int @@ -259,7 +259,7 @@ void yyfree ( void * , yyscan_t yyscanner ); */ #include <unistd.h> #endif - + #define YY_EXTRA_TYPE TikzAssembler * int yylex_init (yyscan_t* scanner); @@ -518,8 +518,8 @@ extern int yylex \ #undef yyTABLES_NAME #endif -#line 195 "src/data/tikzlexer.l" +#line 195 "src\\data\\tikzlexer.l" -#line 524 "tikzlexer.h" +#line 523 "tikzlexer.h" #undef yyIN_HEADER #endif /* yyHEADER_H */ |