Removed limitations on number of indexes.
This commit is contained in:
parent
27d3b68ff4
commit
88966598b8
2 changed files with 3 additions and 4 deletions
|
|
@ -565,8 +565,8 @@ bool Parser::processCustomIndex(uint16 index) {
|
|||
if (url.isEmpty()) {
|
||||
return false;
|
||||
}
|
||||
if (url.startsWith("internal:index") && url.back().isDigit()) {
|
||||
const auto customIndex = uint16(url.back().unicode() - '0');
|
||||
if (url.startsWith("internal:index")) {
|
||||
const auto customIndex = uint16(url.back().unicode());
|
||||
// if (customIndex != index) {
|
||||
url = QString();
|
||||
_linksIndexes.push_back(customIndex);
|
||||
|
|
|
|||
|
|
@ -43,8 +43,7 @@ TextWithEntities Link(const QString &text, const QString &url) {
|
|||
}
|
||||
|
||||
TextWithEntities Link(const QString &text, int index) {
|
||||
Expects(index > 0 && index < 10);
|
||||
return Link(text, QString("internal:index") + QChar('0' + index));
|
||||
return Link(text, QString("internal:index") + QChar(index));
|
||||
}
|
||||
|
||||
TextWithEntities PlainLink(const QString &text) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue