mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-11 00:24:47 -07:00
parent
c5bb38e907
commit
ef4413633a
1 changed files with 11 additions and 9 deletions
|
|
@ -284,15 +284,17 @@ static int parse(const QString &urlTemplate,
|
||||||
return 1;
|
return 1;
|
||||||
} else {
|
} else {
|
||||||
int propLength = propertyValue.length();
|
int propLength = propertyValue.length();
|
||||||
if (subStrLen > 0 && subStrPos + subStrLen > propLength) {
|
if (subStrLen > 0) {
|
||||||
qDebug().nospace() << "PictureLoader: [card: " << cardName << " set: " << setName << "]: Requested "
|
if (subStrPos + subStrLen > propLength) {
|
||||||
<< propType << " property (" << cardPropertyName << ") for Url template ("
|
qDebug().nospace() << "PictureLoader: [card: " << cardName << " set: " << setName << "]: Requested "
|
||||||
<< urlTemplate << ") is smaller than substr specification (" << subStrPos << " + "
|
<< propType << " property (" << cardPropertyName << ") for Url template ("
|
||||||
<< subStrLen << " > " << propLength << ")";
|
<< urlTemplate << ") is smaller than substr specification (" << subStrPos
|
||||||
return 1;
|
<< " + " << subStrLen << " > " << propLength << ")";
|
||||||
} else {
|
return 1;
|
||||||
propertyValue = propertyValue.mid(subStrPos, subStrLen);
|
} else {
|
||||||
propLength = subStrLen;
|
propertyValue = propertyValue.mid(subStrPos, subStrLen);
|
||||||
|
propLength = subStrLen;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!fillWith.isEmpty()) {
|
if (!fillWith.isEmpty()) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue