From 7ccf316e1a2703bc0323b2eb997d821a44022348 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 25 Jul 2009 16:40:35 +0000 Subject: [PATCH] Set all parent frame icons for print preview frame. Using SetIcon(GetIcon()) resulted in ugly scaled icons being used for small icons while using SetIcons(GetIcons()) correctly reuses all parent frame icons in the child one. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61522 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/prntbase.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/prntbase.cpp b/src/common/prntbase.cpp index fcab021603..8ab0c0d002 100644 --- a/src/common/prntbase.cpp +++ b/src/common/prntbase.cpp @@ -1271,7 +1271,7 @@ wxFrame(parent, wxID_ANY, title, pos, size, style, name) #ifdef __WXMSW__ wxFrame* topFrame = wxDynamicCast(wxTheApp->GetTopWindow(), wxFrame); if (topFrame) - SetIcon(topFrame->GetIcon()); + SetIcons(topFrame->GetIcons()); #endif } -- 2.50.0