Moving FileBrowserEntry static variable initialization to a dedicated

method. Fixes a crash introduced by PR #5435.
This commit is contained in:
Hombre57
2023-08-03 20:12:52 +02:00
parent e3e73e6a83
commit 4f752154cf
3 changed files with 11 additions and 11 deletions

View File

@@ -50,7 +50,6 @@ class FileBrowserEntry final : public ThumbBrowserEntryBase,
{
double scale;
static bool iconsLoaded;
bool wasInside;
ImageAreaToolListener* iatlistener;
int press_x, press_y, action_x, action_y;
@@ -80,6 +79,7 @@ public:
FileBrowserEntry (Thumbnail* thm, const Glib::ustring& fname);
~FileBrowserEntry () override;
static void init ();
void draw (Cairo::RefPtr<Cairo::Context> cc) override;
void setImageAreaToolListener (ImageAreaToolListener* l)