aboutsummaryrefslogtreecommitdiff
path: root/src/ui/mapper/style/PreferredSizeStylerMapper.cpp
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-03-05 21:45:33 +0800
committercrupest <crupest@outlook.com>2022-03-05 21:45:33 +0800
commit7697f1ca3904301e551e7500089b30034e84eb32 (patch)
tree2f9e763d96df0679ea3582721f5a109750694d9b /src/ui/mapper/style/PreferredSizeStylerMapper.cpp
parent221f9cd7e453f2968c12a14a46588ea50ca2119d (diff)
downloadcru-7697f1ca3904301e551e7500089b30034e84eb32.tar.gz
cru-7697f1ca3904301e551e7500089b30034e84eb32.tar.bz2
cru-7697f1ca3904301e551e7500089b30034e84eb32.zip
...
Diffstat (limited to 'src/ui/mapper/style/PreferredSizeStylerMapper.cpp')
-rw-r--r--src/ui/mapper/style/PreferredSizeStylerMapper.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/mapper/style/PreferredSizeStylerMapper.cpp b/src/ui/mapper/style/PreferredSizeStylerMapper.cpp
index 9e03dfeb..e7cfc35b 100644
--- a/src/ui/mapper/style/PreferredSizeStylerMapper.cpp
+++ b/src/ui/mapper/style/PreferredSizeStylerMapper.cpp
@@ -16,12 +16,12 @@ PreferredSizeStylerMapper::DoMapFromXml(xml::XmlElementNode* node) {
auto measure_length_mapper =
MapperRegistry::GetInstance()->GetMapper<render::MeasureLength>();
- auto width_attribute = node->GetOptionalAttributeCaseInsensitive(u"width");
+ auto width_attribute = node->GetOptionalAttributeValueCaseInsensitive(u"width");
if (width_attribute) {
size.width = measure_length_mapper->MapFromString(*width_attribute);
}
- auto height_attribute = node->GetOptionalAttributeCaseInsensitive(u"height");
+ auto height_attribute = node->GetOptionalAttributeValueCaseInsensitive(u"height");
if (height_attribute) {
size.height = measure_length_mapper->MapFromString(*height_attribute);
}