From 5c1b9f407d0ac6513c4215dd8ab43e041b5f4069 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Miroslav=20=C5=A0ulc?= Date: Thu, 2 Apr 2020 14:59:15 +0200 Subject: [PATCH] media-sound/musescore: fixed compilation for 9999 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Package-Manager: Portage-2.3.96, Repoman-2.3.22 Signed-off-by: Miroslav Å ulc --- .../files/musescore-9999-lambda-capture-this.patch | 13 +++++++++++++ media-sound/musescore/musescore-9999.ebuild | 1 + 2 files changed, 14 insertions(+) create mode 100644 media-sound/musescore/files/musescore-9999-lambda-capture-this.patch diff --git a/media-sound/musescore/files/musescore-9999-lambda-capture-this.patch b/media-sound/musescore/files/musescore-9999-lambda-capture-this.patch new file mode 100644 index 000000000000..c0bb7083324d --- /dev/null +++ b/media-sound/musescore/files/musescore-9999-lambda-capture-this.patch @@ -0,0 +1,13 @@ +diff --git a/mscore/scoreview.cpp b/mscore/scoreview.cpp +index 9804e1f32..83e0c0e47 100644 +--- a/mscore/scoreview.cpp ++++ b/mscore/scoreview.cpp +@@ -2405,7 +2405,7 @@ void ScoreView::cmd(const char* s) + cv->updateGrips(); + }}, + #ifdef OMR +- {{"show-omr"}, [](ScoreView* cv, const QByteArray&) { ++ {{"show-omr"}, [&](ScoreView* cv, const QByteArray&) { + if (cv->score()->masterScore()->omr()) + showOmr(!_score->masterScore()->showOmr()); + }}, diff --git a/media-sound/musescore/musescore-9999.ebuild b/media-sound/musescore/musescore-9999.ebuild index 89e66d393cfd..d6ea4938d868 100644 --- a/media-sound/musescore/musescore-9999.ebuild +++ b/media-sound/musescore/musescore-9999.ebuild @@ -55,6 +55,7 @@ RDEPEND="${DEPEND}" PATCHES=( "${FILESDIR}/${PN}-3.0.1-man-pages.patch" + "${FILESDIR}/${P}-lambda-capture-this.patch" ) src_unpack() { -- 2.26.2