~ubuntu-branches/ubuntu/oneiric/qwt/oneiric-proposed

« back to all changes in this revision

Viewing changes to qwt-5.1.1/textengines/mathml/qtmmlwidget.cpp.diff

  • Committer: Bazaar Package Importer
  • Author(s): Fathi Boudra
  • Date: 2009-04-12 23:25:58 UTC
  • mfrom: (1.1.4 upstream) (2.1.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090412232558-3bl06x785yr8xm8u
Tags: 5.1.2-1
* New upstream release.
* Bump compat/debhelper to 7.
* Bump Standards-Version to 3.8.1. No changes needed.
* Invert Maintainers and Uploaders field.
* Fix lintian warnings:
  - dh_clean _k deprecated.
  - missing dependency on libc.

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