Skip to content

Commit

Permalink
fix FS#1508 - QCAD CE: Subscript and superscript formatting lost when
Browse files Browse the repository at this point in the history
file re-opened
  • Loading branch information
qcad committed Dec 7, 2016
1 parent fff918c commit 0b1b538
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/RDxfServices.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ void RDxfServices::reset() {
void RDxfServices::fixVersion2String(QString& str) const {
// correct stacked text
// \S+0.1\-0.1; -> \S+0.1^-0.1;
QRegExp rx("\\\\S([^\\\\]*)\\\\([^;]*);");
QRegExp rx("\\\\S([^\\\\;]*)\\\\([^;]*);");
str.replace(rx, "\\S\\1^\\2;");
}

Expand Down

0 comments on commit 0b1b538

Please sign in to comment.