Summary: | large unwanted offset in print preview and printing | ||
---|---|---|---|
Product: | [Applications] calligrastage | Reporter: | John Belmonte <john> |
Component: | general | Assignee: | 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
Created attachment 1205 [details]
print preview screenshot
Shows unwanted offsets occuring at top and left sides of page.
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 ) ) ); |