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:
parent
e2ed965000
commit
568ceeb47f
@ -588,13 +588,13 @@ void GetNextWindowPlacement(wxRect *nextRect, bool *pMaximized, bool *pIconized)
|
|||||||
GetDefaultWindowRect(&defaultWindowRect);
|
GetDefaultWindowRect(&defaultWindowRect);
|
||||||
|
|
||||||
if (gAudacityProjects.IsEmpty()) {
|
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
|
// In version 1.3 and above, using the registry has been replaced
|
||||||
// by a configuration file -- audacity.cfg. Different OSes store
|
// by a configuration file -- audacity.cfg. Different OSes store
|
||||||
// this file in different locations.
|
// this file in different locations.
|
||||||
gPrefs->Read(wxT("/Window/Maximized"), pMaximized);
|
gPrefs->Read(wxT("/Window/Maximized"), pMaximized);
|
||||||
gPrefs->Read(wxT("/Window/Iconized"), pIconized);
|
gPrefs->Read(wxT("/Window/Iconized"), pIconized);
|
||||||
if (pMaximized || pIconized) {
|
if (*pMaximized || *pIconized) {
|
||||||
nextRect->SetX(gPrefs->Read(wxT("/Window/Normal_X"), defaultWindowRect.GetX()));
|
nextRect->SetX(gPrefs->Read(wxT("/Window/Normal_X"), defaultWindowRect.GetX()));
|
||||||
nextRect->SetY(gPrefs->Read(wxT("/Window/Normal_Y"), defaultWindowRect.GetY()));
|
nextRect->SetY(gPrefs->Read(wxT("/Window/Normal_Y"), defaultWindowRect.GetY()));
|
||||||
nextRect->SetWidth(gPrefs->Read(wxT("/Window/Normal_Width"), defaultWindowRect.GetWidth()));
|
nextRect->SetWidth(gPrefs->Read(wxT("/Window/Normal_Width"), defaultWindowRect.GetWidth()));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user