[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/KDE/3.4/kdegraphics/kdvi
From: Stefan Kebekus <stefan.kebekus () uni-bayreuth ! de>
Date: 2005-04-13 14:56:40
Message-ID: 1113404200.359595.22939.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 410447 by kebekus:
fixes issue with clipping of eps graphics
M +6 -1 branches/KDE/3.4/kdegraphics/kdvi/dviwin_prescan.cpp
--- branches/KDE/3.4/kdegraphics/kdvi/dviwin_prescan.cpp #410446:410447
@@ -117,6 +117,7 @@
parse_special_argument(include_command, "rhi=", &rhi);
parse_special_argument(include_command, "angle=", &angle);
+ int clip=include_command.find(" clip"); // -1 if clip keyword is not present, >= 0 \
otherwise
// Generate the PostScript commands to be included
QString PS = QString("ps: @beginspecial %1 @llx %2 @lly %3 @urx %4 \
@ury").arg(llx).arg(lly).arg(urx).arg(ury); @@ -126,6 +127,8 @@
PS.append( QString(" %1 @rhi").arg(rhi) );
if (angle != 0)
PS.append( QString(" %1 @angle").arg(angle) );
+ if (clip != -1)
+ PS.append(" @clip");
PS.append( " @setspecial\n" );
QFile file( EPSfilename );
@@ -415,8 +418,8 @@
parse_special_argument(include_command, "rwi=", &rwi);
parse_special_argument(include_command, "rhi=", &rhi);
parse_special_argument(include_command, "angle=", &angle);
+ int clip=include_command.find(" clip"); // -1 if clip keyword is not present, >= 0 \
otherwise
-
if (QFile::exists(EPSfilename)) {
double PS_H = (currinf.data.dvi_h*300.0)/(65536*1200)-300;
double PS_V = (currinf.data.dvi_v*300.0)/1200 - 300;
@@ -432,6 +435,8 @@
PostScriptOutPutString->append( QString(" %1 @rhi").arg(rhi) );
if (angle != 0)
PostScriptOutPutString->append( QString(" %1 @angle").arg(angle) );
+ if (clip != -1)
+ PostScriptOutPutString->append(" @clip");
PostScriptOutPutString->append( " @setspecial \n" );
PostScriptOutPutString->append( QString(" (%1) run\n").arg(EPSfilename) );
PostScriptOutPutString->append( "@endspecial \n" );
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic