Skip to content

Commit 932c66e

Browse files
committed
make gcc14 happy
1 parent c6cfe3a commit 932c66e

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

src/odr/internal/oldms/text/doc_document.cpp

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,10 @@ class ElementAdapter final : public abstract::ElementAdapter,
159159
(void)element_id;
160160
// TODO setting font size otherwise the text will be invisible. upstream
161161
// this is used to make empty paragraphs works correctly
162-
return {.font_size = Measure("11pt")}; // TODO
162+
TextStyle style{};
163+
// TODO
164+
style.font_size = Measure("11pt");
165+
return style;
163166
}
164167

165168
[[nodiscard]] TextStyle
@@ -183,7 +186,10 @@ class ElementAdapter final : public abstract::ElementAdapter,
183186
(void)element_id;
184187
// TODO setting font size otherwise the text will be invisible. upstream
185188
// this is used to make empty paragraphs works correctly
186-
return {.font_size = Measure("11pt")}; // TODO
189+
TextStyle style{};
190+
// TODO
191+
style.font_size = Measure("11pt");
192+
return style;
187193
}
188194

189195
private:

0 commit comments

Comments
 (0)