From b4b2e4a096fe8fe1ad530a4c181729be05834595 Mon Sep 17 00:00:00 2001 From: "B. Stack" Date: Mon, 18 Apr 2022 09:47:11 -0400 Subject: add upstream 11.20 --- wx+/tooltip.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'wx+/tooltip.cpp') diff --git a/wx+/tooltip.cpp b/wx+/tooltip.cpp index 4a3c571f..a3fa770d 100644 --- a/wx+/tooltip.cpp +++ b/wx+/tooltip.cpp @@ -3,7 +3,6 @@ // * GNU General Public License: https://www.gnu.org/licenses/gpl-3.0 * // * Copyright (C) Zenju (zenju AT freefilesync DOT org) - All Rights Reserved * // ***************************************************************************** - #include "tooltip.h" #include #include @@ -12,6 +11,7 @@ #include #include #include "image_tools.h" +#include "bitmap_button.h" #include "dc.h" #include @@ -64,7 +64,7 @@ void Tooltip::show(const wxString& text, wxPoint mousePos, const wxImage* img) if (!lastUsedImg_.IsSameAs(newImg)) { lastUsedImg_ = newImg; - tipWindow_->bitmapLeft_->SetBitmap(newImg); + setImage(*tipWindow_->bitmapLeft_, newImg); tipWindow_->Refresh(); //needed if bitmap size changed! } -- cgit