summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleks Kissinger <aleks0@gmail.com>2018-10-09 16:19:48 +0200
committerAleks Kissinger <aleks0@gmail.com>2018-10-09 16:19:48 +0200
commit6ead01f547f14604e9cf999c146d0cbb59386735 (patch)
tree0f2aa040edc10a9e2345bc066819a8048df90ae2
parent27521c4f1312a66dd3e196cd4f4912c8fe51695d (diff)
fixed bug when there are no styles2.0-RC1
-rw-r--r--src/data/stylelist.cpp2
-rw-r--r--tikzlexer.h10
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 */