From cf520fb80c8ad4ecfc547ec3f294c51e8a09769612a209aa53cc2c5bd21854e5 Mon Sep 17 00:00:00 2001 From: Dave Plater Date: Wed, 3 Oct 2018 14:43:21 +0000 Subject: [PATCH] Accepting request 639769 from home:plater - Add 0001-Fix-bug-1992.patch from git to fix issue 1992 OBS-URL: https://build.opensuse.org/request/show/639769 OBS-URL: https://build.opensuse.org/package/show/multimedia:apps/audacity?expand=0&rev=124 --- 0001-Fix-bug-1992.patch | 25 +++++++++++++++++++++++++ audacity.changes | 5 +++++ audacity.spec | 2 ++ 3 files changed, 32 insertions(+) create mode 100644 0001-Fix-bug-1992.patch diff --git a/0001-Fix-bug-1992.patch b/0001-Fix-bug-1992.patch new file mode 100644 index 0000000..f9bbbd4 --- /dev/null +++ b/0001-Fix-bug-1992.patch @@ -0,0 +1,25 @@ +From a17af37c1ef9a4611add492d8ba02d1dfb270210 Mon Sep 17 00:00:00 2001 +From: Steve Daulton +Date: Tue, 2 Oct 2018 22:40:10 +0100 +Subject: [PATCH] Fix bug 1992 + +--- + src/Menus.cpp | 5 ++++- + 1 file changed, 4 insertions(+), 1 deletion(-) + +Index: audacity-Audacity-2.3.0/src/Menus.cpp +=================================================================== +--- audacity-Audacity-2.3.0.orig/src/Menus.cpp 2018-09-20 16:35:07.000000000 +0200 ++++ audacity-Audacity-2.3.0/src/Menus.cpp 2018-10-03 16:36:27.684154542 +0200 +@@ -4572,7 +4572,10 @@ bool AudacityProject::DoEffect(const Plu + TrackListIterator iter(GetTracks()); + Track *t = iter.First(); + wxWindow *focus = wxWindow::FindFocus(); +- auto parent = focus->GetParent(); ++ wxWindow *parent; ++ if (focus != nullptr) { ++ parent = focus->GetParent(); ++ } + + bool success = false; + auto cleanup = finally( [&] { diff --git a/audacity.changes b/audacity.changes index 6313326..4e41276 100644 --- a/audacity.changes +++ b/audacity.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Oct 3 14:39:52 UTC 2018 - davejplater@gmail.com + +- Add 0001-Fix-bug-1992.patch from git to fix issue 1992 + ------------------------------------------------------------------- Mon Oct 1 06:58:42 UTC 2018 - davejplater@gmail.com diff --git a/audacity.spec b/audacity.spec index 8466c6b..dbce8c9 100644 --- a/audacity.spec +++ b/audacity.spec @@ -40,6 +40,7 @@ Patch1: audacity-flacversion.patch Patch2: audacity-misc-errors.patch # PATCH-FIX-UPSTREAM audacity-no_return_in_nonvoid.patch Patch3: audacity-no_return_in_nonvoid.patch +Patch4: 0001-Fix-bug-1992.patch BuildRequires: autoconf BuildRequires: automake BuildRequires: cmake @@ -106,6 +107,7 @@ physical memory size can be edited. %patch1 -p0 %patch3 -p0 %patch2 +%patch4 -p1 cp -f %{SOURCE1} LICENSE_NYQUIST.txt # Make sure we use the system versions.