Skip to content

Commit

Permalink
Fix print preview of text window in GTK
Browse files Browse the repository at this point in the history
  • Loading branch information
Blake-Madden committed Sep 18, 2023
1 parent a911b61 commit a48350e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ui/controls/formattedtextctrl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ void FormattedTextCtrl::OnPrint([[maybe_unused]] wxCommandEvent& event)

GError* error{ nullptr };
const gint printResult = gtk_print_operation_run(operation, GTK_PRINT_OPERATION_ACTION_PRINT_DIALOG,
GTK_WINDOW(GetHandle()), &error);
GTK_WINDOW(gtk_widget_get_toplevel(this->m_widget)), &error);

if (printResult == GTK_PRINT_OPERATION_RESULT_APPLY)
{
Expand Down

0 comments on commit a48350e

Please sign in to comment.