~showard314/ubuntu/natty/qtiplot/Python2.7_fix

« back to all changes in this revision

Viewing changes to 3rdparty/qwt/textengines/mathml/qtmmlwidget.cpp.diff

  • Committer: Bazaar Package Importer
  • Author(s): Fathi Boudra
  • Date: 2008-04-04 15:11:55 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20080404151155-rjp12ziov4tryj0o
Tags: 0.9.4-1
* New upstream release.
* Refresh patches.
* Remove 04_homepage_url patch. Merged upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
--- qtmmlwidget.cpp.org 2007-01-15 22:34:37.000000000 +0100
 
2
+++ qtmmlwidget.cpp     2007-01-15 22:34:37.000000000 +0100
 
3
@@ -3970,9 +3970,6 @@
 
4
 void MmlNode::paint(QPainter *p)
 
5
 {
 
6
     p->save();
 
7
-    p->setViewport(deviceRect());
 
8
-    p->setWindow(myRect());
 
9
-
 
10
 
 
11
     QColor fg = color();
 
12
     QColor bg = background();
 
13
@@ -4219,7 +4216,9 @@
 
14
     p->save();
 
15
     p->setFont(fn);
 
16
 
 
17
-    p->drawText(0, fm.strikeOutPos(), m_text);
 
18
+    QPoint dPos = devicePoint(relOrigin());
 
19
+    p->drawText(dPos.x(), dPos.y() + fm.strikeOutPos(), m_text);
 
20
+
 
21
     p->restore();
 
22
 }
 
23