[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdegraphics/kviewshell/plugins/dvi
From: Wilfried Huss <Wilfried.Huss () gmx ! at>
Date: 2006-05-27 16:48:05
Message-ID: 1148748485.251192.9859.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 545497 by whuss:
qt3support--
M +1 -1 TeXFont_PFB.cpp
M +2 -2 psgs.cpp
M +1 -1 special.cpp
--- trunk/KDE/kdegraphics/kviewshell/plugins/dvi/TeXFont_PFB.cpp #545496:545497
@@ -83,7 +83,7 @@
kDebug(kvs::dvi) << "Trying to associate glyph indices to names from the \
encoding vector." << endl; #endif
for(int i=0; i<256; i++) {
- charMap[i] = FT_Get_Name_Index( face, (FT_String \
*)(enc->glyphNameVector[i].ascii()) ); + charMap[i] = FT_Get_Name_Index( face, \
(FT_String *)(enc->glyphNameVector[i].toAscii().data()) ); #ifdef DEBUG_PFB
kDebug(kvs::dvi) << i << ": " << enc->glyphNameVector[i] << ", GlyphIndex=" << \
charMap[i] << endl; #endif
--- trunk/KDE/kdegraphics/kviewshell/plugins/dvi/psgs.cpp #545496:545497
@@ -191,7 +191,7 @@
// Start page
<< "1 0 bop 0 0 a \n";
- if (PostScriptHeaderString->latin1() != NULL)
+ if (!PostScriptHeaderString->toLatin1().isNull())
os << PostScriptHeaderString->toLatin1();
if (info->background != Qt::white) {
@@ -202,7 +202,7 @@
os << colorCommand.toLatin1();
}
- if (info->PostScriptString->latin1() != NULL)
+ if (!info->PostScriptString->toLatin1().isNull())
os << info->PostScriptString->toLatin1();
os << "end\n"
--- trunk/KDE/kdegraphics/kviewshell/plugins/dvi/special.cpp #545496:545497
@@ -384,7 +384,7 @@
bbox_height *= 0.1 * 65536.0*fontPixelPerDVIunit / shrinkfactor;
QImage image(EPSfilename);
- image = image.smoothScale((int)(bbox_width), (int)(bbox_height));
+ image = image.scaled((int)(bbox_width), (int)(bbox_height), \
Qt::IgnoreAspectRatio, Qt::SmoothTransformation);
foreGroundPainter->drawImage( ((int) ((currinf.data.dvi_h) / (shrinkfactor * \
65536))), currinf.data.pxl_v - (int)bbox_height, image); return;
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic