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

gEDA-cvs: gaf.git: branch: master updated (1.6.1-20100214-144-gbb8ca8d)



The branch, master has been updated
       via  bb8ca8df886f6a800e96910424d6b3ba55f2f14f (commit)
      from  019990c574e3806c566d18ad1548c76d979eb37f (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


=========
 Summary
=========

 gschem/src/x_image.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


=================
 Commit Messages
=================

commit bb8ca8df886f6a800e96910424d6b3ba55f2f14f
Author: Wojciech Kazubski <wk0@xxxxx>
Commit: Peter TB Brett <peter@xxxxxxxxxxxxx>

    gschem: Don't crop the png output [3100660] [3100680]
    
    Gschem sometimes crops the image exported to bitmap file (png,
    bmp... but not eps). This appears in certain range of picture
    proportions, landscape but close to square.
    
    This patch alters the algorithm that adjusts the image proportions to
    remove this problem.

:100644 100644 d2153ca... aa7b845... M	gschem/src/x_image.c

=========
 Changes
=========

commit bb8ca8df886f6a800e96910424d6b3ba55f2f14f
Author: Wojciech Kazubski <wk0@xxxxx>
Commit: Peter TB Brett <peter@xxxxxxxxxxxxx>

    gschem: Don't crop the png output [3100660] [3100680]
    
    Gschem sometimes crops the image exported to bitmap file (png,
    bmp... but not eps). This appears in certain range of picture
    proportions, landscape but close to square.
    
    This patch alters the algorithm that adjusts the image proportions to
    remove this problem.

diff --git a/gschem/src/x_image.c b/gschem/src/x_image.c
index d2153ca..aa7b845 100644
--- a/gschem/src/x_image.c
+++ b/gschem/src/x_image.c
@@ -349,7 +349,7 @@ void x_image_lowlevel(GSCHEM_TOPLEVEL *w_current, const char* filename,
 
   /* Preserve proportions */
   prop = (float)width / height;
-  if(page_width > page_height) {
+  if (((float)page_width / page_height) > prop) {
     page_height = (page_width / prop);
   }else{
     page_width = (page_height * prop);




_______________________________________________
geda-cvs mailing list
geda-cvs@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-cvs