tageditor: Fix FieldId::fromTagDenotation

This commit is contained in:
Tee KOBAYASHI 2022-12-15 19:00:32 +09:00 committed by xtkoba
parent e2ff2fe0ce
commit 89f0aabb24
2 changed files with 14 additions and 0 deletions

View File

@ -3,6 +3,7 @@ TERMUX_PKG_DESCRIPTION="A tag editor with Qt GUI and command-line interface. Sup
TERMUX_PKG_LICENSE="GPL-2.0"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=3.7.6
TERMUX_PKG_REVISION=1
TERMUX_PKG_SRCURL=https://github.com/Martchus/tageditor/archive/refs/tags/v${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=48991e04a95caeaa60a458a3c05b127d96268a2c3092487010ba7f1fe7c94f3e
TERMUX_PKG_DEPENDS="libc++, libc++utilities, qt5-qtbase, qt5-qtdeclarative, qtutilities, tagparser"

View File

@ -0,0 +1,13 @@
https://github.com/termux/termux-packages/issues/13590
--- a/cli/helper.cpp
+++ b/cli/helper.cpp
@@ -778,7 +778,7 @@ FieldId FieldId::fromTagDenotation(std::
if (knownField == KnownField::Invalid) {
throw ConversionException("generic field name is unknown");
}
- return FieldId(knownField, nullptr, 0);
+ return FieldId(knownField, denotation.data(), denotation.size());
}
FieldId FieldId::fromTrackDenotation(std::string_view denotation)