[Kst] extragear/graphics/kst/src/libkstmath
Eli Fidler
eli at staikos.net
Fri May 4 18:26:37 CEST 2007
SVN commit 661117 by fidler:
fix for bug 144108: Superscript cannot be used to start a label
M +8 -12 labelparser.cpp
--- trunk/extragear/graphics/kst/src/libkstmath/labelparser.cpp #661116:661117
@@ -527,20 +527,16 @@
case 0x5e: // ^
dir = Chunk::Up;
case 0x5f: // _
- if (ctail->text.isEmpty() && !ctail->group) {
- setNormalChar(c, &ctail);
- } else {
- if (ctail->vOffset != Chunk::None) {
- if (ctail->vOffset != dir) {
- ctail = new Chunk(ctail->prev, dir, false, true);
- } else if (ctail->group) {
- ctail = new Chunk(ctail, dir, false, true);
- } else {
- return 0L; // parse error - x^y^z etc
- }
- } else {
+ if (ctail->vOffset != Chunk::None) {
+ if (ctail->vOffset != dir) {
+ ctail = new Chunk(ctail->prev, dir, false, true);
+ } else if (ctail->group) {
ctail = new Chunk(ctail, dir, false, true);
+ } else {
+ return 0L; // parse error - x^y^z etc
}
+ } else {
+ ctail = new Chunk(ctail, dir, false, true);
}
break;
case 0x7b: // {
More information about the Kst
mailing list