diff options
author | albert-github <albert.tests@gmail.com> | 2020-05-06 09:17:52 (GMT) |
---|---|---|
committer | albert-github <albert.tests@gmail.com> | 2020-05-06 09:17:52 (GMT) |
commit | 4b49842820ac3880162d835ddcde90b4859e8280 (patch) | |
tree | d0f7e2ae62d160d6df06d316d2c5d206fc63785c | |
parent | 82cb93c033c83b5a184cd450d86b0f712e0870b3 (diff) | |
download | Doxygen-4b49842820ac3880162d835ddcde90b4859e8280.zip Doxygen-4b49842820ac3880162d835ddcde90b4859e8280.tar.gz Doxygen-4b49842820ac3880162d835ddcde90b4859e8280.tar.bz2 |
issue #7753: SVG formula all with zero width
The wrong index to determine the old size was used. (index for `#` instead of `=`).
Problem was not just for SVG but also for PNG.
-rw-r--r-- | src/formula.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/formula.cpp b/src/formula.cpp index cb28aba..71a12f5 100644 --- a/src/formula.cpp +++ b/src/formula.cpp @@ -98,10 +98,10 @@ void FormulaManager::readFormulas(const char *dir,bool doCompare) int w=-1,h=-1; if (ei!=-1 && ei>hi && ei<se) // new format { - int xi=formName.find('x',hi); + int xi=formName.find('x',ei); if (xi!=-1) { - w=formName.mid(hi+1,xi-hi-1).toInt(); + w=formName.mid(ei+1,xi-ei-1).toInt(); h=formName.mid(xi+1).toInt(); } formName = formName.left(ei); |