Skip to content

Commit

Permalink
Another fix for issue-234: linewidth parameter of save_image_with_opt…
Browse files Browse the repository at this point in the history
…ions did not have any effect.
  • Loading branch information
klayoutmatthias committed Feb 23, 2019
1 parent e7ba0e5 commit a7406d3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/lay/lay/layMainWindow.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2061,7 +2061,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);
Expand Down
4 changes: 2 additions & 2 deletions src/laybasic/laybasic/layLayoutCanvas.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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 ();
Expand All @@ -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 ());

}

Expand Down

0 comments on commit a7406d3

Please sign in to comment.