diff --git a/libs/drape_frontend/gui/gui_text.cpp b/libs/drape_frontend/gui/gui_text.cpp index a71c4e93a..adcc660e9 100644 --- a/libs/drape_frontend/gui/gui_text.cpp +++ b/libs/drape_frontend/gui/gui_text.cpp @@ -370,7 +370,10 @@ void MutableLabel::SetText(LabelResult & result, std::string text, ref_ptr::max(), std::numeric_limits::lowest()}; + float offsetLeft = 0; + glsl::vec2 pen = glsl::vec2(0.0, 0.0); ASSERT_EQUAL(m_glyphRegions.size(), m_shapedText.m_glyphs.size(), ()); @@ -384,17 +387,30 @@ void MutableLabel::SetText(LabelResult & result, std::string text, ref_ptr textures) - : TBase(id, anchor, pivot) - , m_textView(make_unique_dp(anchor)) - , m_isContentDirty(true) - , m_textureManager(std::move(textures)) - , m_glyphsReady(false) -{} + : MutableLabelHandle(id, anchor, pivot) +{ + m_textureManager = std::move(textures); +} void MutableLabelHandle::GetAttributeMutation(ref_ptr mutator) const {