MCPcopy Create free account
hub / github.com/OpenOrienteering/mapper / copyFrom

Method copyFrom

src/core/objects/text_object.cpp:152–165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

150}
151
152void TextObject::copyFrom(const Object& other)
153{
154 if (&other == this)
155 return;
156
157 Object::copyFrom(other);
158 const TextObject& other_text = *other.asText();
159 text = other_text.text;
160 h_align = other_text.h_align;
161 v_align = other_text.v_align;
162 has_single_anchor = other_text.has_single_anchor;
163 size = other_text.size;
164 line_infos = other_text.line_infos;
165}
166
167void TextObject::setAnchorPosition(qint32 x, qint32 y)
168{

Callers

nothing calls this directly

Calls 1

asTextMethod · 0.45

Tested by

no test coverage detected