Skip to content

Commit

Permalink
Merge pull request moneymanagerex#6933 from n-stein/fix(moneymanagere…
Browse files Browse the repository at this point in the history
…x#6847)

fix(moneymanagerex#6847): fix wxWidgets debug assertion failures
  • Loading branch information
whalley authored Oct 21, 2024
2 parents c705867 + 93ce394 commit a18d5da
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/mmframe.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2741,7 +2741,7 @@ void mmGUIFrame::refreshPanelData(wxCommandEvent& /*event*/)
}
void mmGUIFrame::refreshPanelData()
{
int id = panelCurrent_->GetId();
int id = panelCurrent_ ? panelCurrent_->GetId() : mmID_HOMEPAGE;
wxLogDebug("Panel ID: %d", id);

switch (id)
Expand Down
2 changes: 1 addition & 1 deletion src/reports/mmDateRange.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#include "option.h"
#include <wx/intl.h>

#define DATE_MAX 253402300799 /* Dec 31, 9999 23:59:59 UTC*/
#define DATE_MAX 32503679999 /* Dec 31, 2999 23:59:59 UTC*/

mmDateRange::mmDateRange() : today_(wxDateTime::Today())
, today_end_(wxDateTime(23, 59, 59, 999))
Expand Down

0 comments on commit a18d5da

Please sign in to comment.