forked from osmocom/wireshark
QT: Fix printer dialog
Fix EXC_BAD_ACCESS error by using printer variable.
This commit is contained in:
parent
3b8574b244
commit
ea20002a07
|
@ -244,7 +244,7 @@ void PrintDialog::printPackets(QPrinter *printer, bool in_preview)
|
||||||
if (!printer) return;
|
if (!printer) return;
|
||||||
|
|
||||||
#if (QT_VERSION >= QT_VERSION_CHECK(5, 15, 0))
|
#if (QT_VERSION >= QT_VERSION_CHECK(5, 15, 0))
|
||||||
page_pos_ = printer->pageLayout().paintRectPixels(cur_printer_->resolution()).top();
|
page_pos_ = printer->pageLayout().paintRectPixels(printer->resolution()).top();
|
||||||
#else
|
#else
|
||||||
page_pos_ = printer->pageRect().top();
|
page_pos_ = printer->pageRect().top();
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue