Bug 56123

Summary: large unwanted offset in print preview and printing
Product: [Applications] calligrastage Reporter: John Belmonte <john>
Component: generalAssignee: Laurent Montel <montel>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Debian testing   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: print preview screenshot

Description John Belmonte 2003-03-19 03:30:39 UTC
Version:            (using KDE KDE 3.1)
Installed from:    Debian testing/unstable Packages

There is a large offset at the top and left sides of the page in the print output.  It is evident even in the print preview, and regardless of page format and orientation.

I will attach a screenshot of the print preview for a page with an elipse shape sized to the extents of the page.  I have margins are set to 0.  (The problem occurs even with other margin settings.)
Comment 1 John Belmonte 2003-03-19 03:36:13 UTC
Created attachment 1205 [details]
print preview screenshot

Shows unwanted offsets occuring at top and left sides of page.
Comment 2 Lukáš Tinkl 2003-04-23 17:01:18 UTC
Subject: koffice/kpresenter

CVS commit by lukas: 

fix #56123
(large unwanted offset in print preview and printing)

CCMAIL: 56123-done@bugs.kde.org


  M +8 -3      kpresenter_view.cc   1.969


--- koffice/kpresenter/kpresenter_view.cc  #1.968:1.969
@@ -417,5 +417,10 @@ void KPresenterView::setupPrinter( KPrin
     prt.setOption( "kde-range", m_pKPresenterDoc->selectedForPrinting() );
     prt.setPageSelection(KPrinter::ApplicationSide);
-    KoFormat pageFormat = m_pKPresenterDoc->pageLayout().format;
+    KoPageLayout layout = m_pKPresenterDoc->pageLayout();
+    prt.setOption( "kde-margin-top", QString::number(layout.ptTop) );
+    prt.setOption( "kde-margin-bottom", QString::number(layout.ptBottom) );
+    prt.setOption( "kde-margin-left", QString::number(layout.ptLeft) );
+    prt.setOption( "kde-margin-right", QString::number(layout.ptRight) );
+    KoFormat pageFormat = layout.format;
     prt.setPageSize( static_cast<KPrinter::PageSize>( KoPageFormat::printerPageSize( pageFormat ) ) );