Update of /cvsroot/mahogany/M/src/gui
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2669/src/gui

Modified Files:
        wxllist.cpp 
Log Message:
The default viewer is now a little bit better for printing: it does actually
have more than one page when necessary, and thus printing works. 
But the problem is not yet solved, as the preview uses more pages 
than the actual printer...

Index: wxllist.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/gui/wxllist.cpp,v
retrieving revision 1.163
retrieving revision 1.164
diff -b -u -2 -r1.163 -r1.164
--- wxllist.cpp 8 Sep 2004 06:40:28 -0000       1.163
+++ wxllist.cpp 8 Sep 2004 08:30:00 -0000       1.164
@@ -3451,5 +3451,5 @@
    m_llist->Layout(*psdc);
 
-   (void)ScaleDC(psdc);
+   float scale = ScaleDC(psdc);
 
    // leave margins
@@ -3457,5 +3457,5 @@
 
    // This is the length of the printable area.
-   m_PrintoutHeight = m_PageHeight;
+   m_PrintoutHeight = m_PageHeight / scale;
 
    // how many pages do we need to print the entire list?



-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates

Reply via email to