AtSpiAdaptor: fix 'defined' field in GetAttributeValue
Value was inverted. Found by own code review. Change-Id: I2027d97e1f9d52f6d79fb72ecad9ee2034f9af25 Reviewed-by: Frederik Gladhorn <frederik.gladhorn@qt.io>
This commit is contained in:
parent
23ac125bcb
commit
e7183f26f1
@ -2079,7 +2079,6 @@ QVariantList AtSpiAdaptor::getAttributeValue(QAccessibleInterface *interface, in
|
||||
QSpiAttributeSet map;
|
||||
int startOffset;
|
||||
int endOffset;
|
||||
bool defined;
|
||||
|
||||
joined = interface->textInterface()->attributes(offset, &startOffset, &endOffset);
|
||||
attributes = joined.split (QLatin1Char(';'), QString::SkipEmptyParts, Qt::CaseSensitive);
|
||||
@ -2091,7 +2090,7 @@ QVariantList AtSpiAdaptor::getAttributeValue(QAccessibleInterface *interface, in
|
||||
map[attribute.name] = attribute.value;
|
||||
}
|
||||
mapped = map[attributeName];
|
||||
defined = mapped.isEmpty();
|
||||
const bool defined = !mapped.isEmpty();
|
||||
QVariantList list;
|
||||
list << mapped << startOffset << endOffset << defined;
|
||||
return list;
|
||||
|
Loading…
Reference in New Issue
Block a user