Bug 30035

Summary: Perhaps a bug in wmf (emf) library
Product: [Unmaintained] kword Reporter: Lor Thi <lor.thi>
Component: generalAssignee: Thomas Zander <zander>
Status: CLOSED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Other   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Lor Thi 2001-07-30 20:22:26 UTC
(*** This bug was imported into bugs.kde.org ***)

Subject: Perhaps a bug in wmf (emf) library
Date: Mon 30 Jul 2001 22:20:46 +0200
From: thierry lorthiois <lor.thi@libertysurf.fr>
To: submit@bugs.kde.org

Package:kword
Version:cvs 30/07 (using KDE 2.2 CVS 30/07)
Severity:normal
Installed from: compiled sources
Others :  Suse7.1 linux 2.4.3 gcc 2.95.2 qt2.3.1

In file "koffice/lib/kwmf/wmfstruct.h"
 struct WmfEnhMetaHeader
 {
 .......
    SIZEL   szlDevice;          // Size of the reference device in pixels
    SIZEL   szlMillimeters;     // Size of the reference device in
 millimeters };
with
 typedef Q_INT32 SIZEL;

But the specification of Enhanced Meta Header say
    LONG  WidthDevPixels;   /* Width of reference device in pixels */
    LONG  HeightDevPixels;  /* Height of reference device in pixels */
    LONG  WidthDevMM;       /* Width of reference device in millimeters */
    LONG  HeightDevMM;      /* Height of reference device in millimeters */

I don't see any change for wmf file :(

bye

thierry
Comment 1 David Faure 2001-07-30 21:02:46 UTC
On Monday 30 July 2001 22:20 thierry lorthiois wrote:
> Package: kword
> Version: cvs 30/07 (using KDE 2.2 CVS 30/07)
> Severity: normal
> Installed from: compiled sources
> Others :  Suse7.1 linux 2.4.3 gcc 2.95.2 qt2.3.1
> 
> In file "koffice/lib/kwmf/wmfstruct.h"
>  struct WmfEnhMetaHeader
>  {
>  .......
>     SIZEL   szlDevice;          // Size of the reference device in pixels
>     SIZEL   szlMillimeters;     // Size of the reference device in millimeters
>  };
> with
>  typedef Q_INT32 SIZEL;
> 
> But the specification of Enhanced Meta Header say
>     LONG  WidthDevPixels;   /* Width of reference device in pixels */
>     LONG  HeightDevPixels;  /* Height of reference device in pixels */
>     LONG  WidthDevMM;       /* Width of reference device in millimeters */
>     LONG  HeightDevMM;      /* Height of reference device in millimeters */

Hmm hold on.... Where's the problem ?
On an x86 machine Q_INT32 is 32 bits and LONG is 32 bits....

-- 
David FAURE david@mandrakesoft.com faure@kde.org
http://perso.mandrakesoft.com/~david/ http://www.konqueror.org/
KDE Making The Future of Computing Available Today
Comment 2 Dave Gilbert 2012-06-24 13:28:38 UTC
*** Bug 302441 has been marked as a duplicate of this bug. ***