summaryrefslogtreecommitdiffstats
path: root/src/formula.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/formula.cpp')
-rw-r--r--src/formula.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/formula.cpp b/src/formula.cpp
index adc1d42..d3dddd0 100644
--- a/src/formula.cpp
+++ b/src/formula.cpp
@@ -206,14 +206,14 @@ void FormulaList::generateBitmaps(const char *path)
QTextStream t(&f);
QCString s;
if (!t.eof())
- s=t.readLine();
+ s=t.readLine().utf8();
if (s.length()<2 || s.left(2)!="P6")
err("error: ghostscript produced an illegal image format!");
else
{
// assume the size if after the first line that does not start with
// # excluding the first line of the file.
- while (!t.eof() && (s=t.readLine()) && !s.isEmpty() && s.at(0)=='#') { }
+ while (!t.eof() && (s=t.readLine().utf8()) && !s.isEmpty() && s.at(0)=='#') { }
sscanf(s,"%d %d",&imageX,&imageY);
}
if (imageX>0 && imageY>0)