File tree Expand file tree Collapse file tree
vnext/Microsoft.ReactNative/Fabric/Composition Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -281,17 +281,15 @@ void ParagraphComponentView::DrawText() noexcept {
281281 viewProps ()->backgroundColor ? theme ()->D2DColor (*viewProps ()->backgroundColor )
282282 : D2D1::ColorF (D2D1::ColorF::Black, 0 .0f ));
283283 const auto &props = paragraphProps ();
284- if (m_textLayout) {
285- RenderText (
286- *d2dDeviceContext,
287- *m_textLayout,
288- m_attributedStringBox.getValue (),
289- props.textAttributes ,
290- {static_cast <float >(offset.x ) + m_layoutMetrics.contentInsets .left ,
291- static_cast <float >(offset.y ) + m_layoutMetrics.contentInsets .top },
292- m_layoutMetrics.pointScaleFactor ,
293- *theme ());
294- }
284+ RenderText (
285+ *d2dDeviceContext,
286+ *m_textLayout,
287+ m_attributedStringBox.getValue (),
288+ props.textAttributes ,
289+ {static_cast <float >(offset.x ) + m_layoutMetrics.contentInsets .left ,
290+ static_cast <float >(offset.y ) + m_layoutMetrics.contentInsets .top },
291+ m_layoutMetrics.pointScaleFactor ,
292+ *theme ());
295293
296294 if (!isnan (props.opacity )) {
297295 Visual ().Opacity (props.opacity );
You can’t perform that action at this time.
0 commit comments