1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-09-24 16:01:16 +02:00

bug fix patch from Eric Lubin: "...where a check accidentally does not dereference a pointer to a bool, instead checking whether or not the pointer is non-null." from "Fixed bug in Project.cpp Where Bool Isn't Dereferenced Properly" thread on -devel.

This commit is contained in:
v.audacity 2013-12-13 01:15:12 +00:00
parent e2ed965000
commit 568ceeb47f

View File

@ -588,13 +588,13 @@ void GetNextWindowPlacement(wxRect *nextRect, bool *pMaximized, bool *pIconized)
GetDefaultWindowRect(&defaultWindowRect);
if (gAudacityProjects.IsEmpty()) {
//Read the values from the registry, or use the defaults
// Read the values from the registry, or use the defaults.
// In version 1.3 and above, using the registry has been replaced
// by a configuration file -- audacity.cfg. Different OSes store
// this file in different locations.
gPrefs->Read(wxT("/Window/Maximized"), pMaximized);
gPrefs->Read(wxT("/Window/Iconized"), pIconized);
if (pMaximized || pIconized) {
if (*pMaximized || *pIconized) {
nextRect->SetX(gPrefs->Read(wxT("/Window/Normal_X"), defaultWindowRect.GetX()));
nextRect->SetY(gPrefs->Read(wxT("/Window/Normal_Y"), defaultWindowRect.GetY()));
nextRect->SetWidth(gPrefs->Read(wxT("/Window/Normal_Width"), defaultWindowRect.GetWidth()));