From 249b31972390ba25de349a54b49709f1ae273933 Mon Sep 17 00:00:00 2001 From: Joseph Lenox Date: Sat, 12 May 2018 16:41:56 -0500 Subject: [PATCH] Use wxDateTime::Now() to initialze current date instead of default constructor (avoid runtime errors) --- src/GUI/Plater/Plate2D.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/GUI/Plater/Plate2D.hpp b/src/GUI/Plater/Plate2D.hpp index 064749757..68e140f04 100644 --- a/src/GUI/Plater/Plate2D.hpp +++ b/src/GUI/Plater/Plate2D.hpp @@ -21,7 +21,7 @@ namespace Slic3r { namespace GUI { // Setup for an Easter Egg with the canvas text. -const wxDateTime today_date {wxDateTime().GetDateOnly()}; +const wxDateTime today_date {wxDateTime::Now()}; const wxDateTime special_date {13, wxDateTime::Month::Sep, 2006, 0, 0, 0, 0}; const bool today_is_special = {today_date.GetDay() == special_date.GetDay() && today_date.GetMonth() == special_date.GetMonth()};