[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

rpms/libwmf/devel libwmf-0.2.8.3-rh154813.patch, NONE, 1.1 libwmf.spec, 1.8, 1.9



Author: caolanm

Update of /cvs/dist/rpms/libwmf/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv16062

Modified Files:
	libwmf.spec 
Added Files:
	libwmf-0.2.8.3-rh154813.patch 
Log Message:
rh154813# upside down wmfs

libwmf-0.2.8.3-rh154813.patch:
 coord.h |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

--- NEW FILE libwmf-0.2.8.3-rh154813.patch ---
--- libwmf-0.2.8.3.orig/src/player/coord.h	2002-05-14 19:19:28.000000000 +0100
+++ libwmf-0.2.8.3/src/player/coord.h	2005-07-26 16:00:05.000000000 +0100
@@ -222,7 +222,8 @@
 	case (MM_HIENGLISH): /* each unit is 0.001 inch */
 	case (MM_TWIPS):     /* each unit is 1/1440 inch */
 	case (MM_DPI):       /* isotropic; placeable meta file */
-
+		if (P->dc->Window.width < 0)
+			return -P->dc->pixel_width;
 	break;
 
 	default:
@@ -267,7 +268,8 @@
 	case (MM_HIENGLISH): /* each unit is 0.001 inch */
 	case (MM_TWIPS):     /* each unit is 1/1440 inch */
 	case (MM_DPI):       /* isotropic; placeable meta file */
-
+		if (P->dc->Window.height < 0)
+			return -P->dc->pixel_height;
 	break;
 
 	default:


Index: libwmf.spec
===================================================================
RCS file: /cvs/dist/rpms/libwmf/devel/libwmf.spec,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- libwmf.spec	2 Mar 2005 14:15:56 -0000	1.8
+++ libwmf.spec	26 Jul 2005 15:16:12 -0000	1.9
@@ -1,7 +1,7 @@
 Summary: Windows Metafile Library
 Name: libwmf
 Version: 0.2.8.3
-Release: 8
+Release: 9
 Group: System Environment/Libraries
 License: LGPL
 Source: http://prdownloads.sourceforge.net/wvware/%{name}-%{version}.tar.gz
@@ -10,6 +10,7 @@
 Patch1: libwmf-0.2.8.3-relocatablefonts.patch
 Patch2: libwmf-0.2.8.3-warnings.patch
 Patch3: libwmf-0.2.8.3-noextras.patch
+Patch4: libwmf-0.2.8.3-rh154813.patch
 Requires: gtk2 >= 2.4.1-2
 Requires: libxml2 >= 2.6.8
 Requires: gd >= 2.0.21
@@ -43,6 +44,7 @@
 %patch1 -p1 -b .relocatablefonts
 %patch2 -p1 -b .warnings
 %patch3 -p1 -b .noextras
+%patch4 -p1 -b .rh154813
 
 %build
 rm configure.ac
@@ -99,6 +101,10 @@
 rm -r $RPM_BUILD_ROOT
 
 %changelog
+* Tue Jul 26 2005 Caolan McNamara <caolanm redhat com> 0.2.8.3-9
+- rh#154813# wmf upsidedown, spec (what of is there is) says that
+  this shouldn't happen, but...
+
 * Wed Mar  2 2005 Caolan McNamara <caolanm redhat com> 0.2.8.3-8
 - rebuild with gcc4
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]