/*
- * Copyright (c) 2020 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2023 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
ascender{ascender},
descender{descender}
{
- DALI_ASSERT_DEBUG(utf8Character.size() <= 4u);
+ DALI_ASSERT_DEBUG(utf8Character.size() <= 6u);
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wstringop-overflow"
std::copy(utf8Character.begin(), utf8Character.end(), utf8);
+#pragma GCC diagnostic pop
}
Glyph::~Glyph()
~Glyph();
std::string url; ///< The url of the glyph.
- uint8_t utf8[4]; ///< the glyph encoded in utf8
+ uint8_t utf8[6]; ///< the glyph encoded in utf8
float ascender; ///< The ascender. The distance from the base line to the top of the glyph.
float descender; ///< The descender. The distance from the base line to the bottom of the glyph.
};
}
case Actor::Property::VISIBLE:
{
- GetAccessibleObject()->EmitVisible(Self().GetProperty<bool>(Actor::Property::VISIBLE));
+ auto* accessible = GetAccessibleObject();
+ if(DALI_LIKELY(accessible))
+ {
+ accessible->EmitVisible(Self().GetProperty<bool>(Actor::Property::VISIBLE));
+ }
break;
}
case DevelActor::Property::USER_INTERACTION_ENABLED: