Another fix for issue-234: linewidth parameter of save_image_with_options did not have any effect.

This commit is contained in:
Matthias Koefferlein 2019-02-23 18:13:49 +01:00
parent fc486062d8
commit 60a2ce6037
2 changed files with 3 additions and 3 deletions

View File

@ -2066,7 +2066,7 @@ MainWindow::cm_print ()
text_rect.setBottom (text_rect.bottom () - hh / 2);
text_rect.setTop (text_rect.top () + hh / 2);
QImage img = current_view ()->get_image_with_options (page_rect.width (), page_rect.height () - 4 * hh, 2, 1, 1.0 / 3.0, Qt::white, Qt::black, Qt::black, db::DBox (), false);
QImage img = current_view ()->get_image_with_options (page_rect.width (), page_rect.height () - 4 * hh, 1, 1, 1.0 / 3.0, Qt::white, Qt::black, Qt::black, db::DBox (), false);
painter.drawImage (QPoint (page_rect.left (), page_rect.top () + hh * 2), img);
painter.setFont (header_font);

View File

@ -844,7 +844,7 @@ LayoutCanvas::image_with_options (unsigned int width, unsigned int height, int l
do_render_bg (vp, vo_canvas);
// paint the layout bitmaps
rd_canvas.to_image (m_view_ops, dither_pattern (), line_styles (), background, foreground, active, this, vo_canvas.bg_image (), vp.width (), vp.height ());
rd_canvas.to_image (view_ops, dither_pattern (), line_styles (), background, foreground, active, this, vo_canvas.bg_image (), vp.width (), vp.height ());
// subsample current image to provide the background for the foreground objects
vo_canvas.make_background ();
@ -860,7 +860,7 @@ LayoutCanvas::image_with_options (unsigned int width, unsigned int height, int l
// TODO: Painting of background objects???
// paint the layout bitmaps
rd_canvas.to_image (m_view_ops, dither_pattern (), line_styles (), background, foreground, active, this, vo_canvas.bg_image (), vp.width (), vp.height ());
rd_canvas.to_image (view_ops, dither_pattern (), line_styles (), background, foreground, active, this, vo_canvas.bg_image (), vp.width (), vp.height ());
}