From 898c4d3ab45f8d11b3414547695e1dabcf6fffd7 Mon Sep 17 00:00:00 2001 From: vixco <93612321+vixco@users.noreply.github.com> Date: Sat, 30 May 2026 00:57:03 +0200 Subject: [PATCH] Fix RTF shape border color mapping Signed-off-by: vixco <93612321+vixco@users.noreply.github.com> --- RtfFile/Format/RtfShape.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/RtfFile/Format/RtfShape.cpp b/RtfFile/Format/RtfShape.cpp index 376863db44..ed7950a532 100644 --- a/RtfFile/Format/RtfShape.cpp +++ b/RtfFile/Format/RtfShape.cpp @@ -314,7 +314,7 @@ std::wstring RtfShape::RenderToRtf(RenderParameter oRenderParameter) if (m_bLine) { if (m_nBorderTopColor == PROP_DEF) - m_nBorderTopColor = m_nBorderLeftColor = m_nBorderTopColor = m_nBorderBottomColor = m_nLineColor; + m_nBorderTopColor = m_nBorderLeftColor = m_nBorderRightColor = m_nBorderBottomColor = m_nLineColor; INT brdrw = PROP_DEF; if (PROP_DEF != m_nLineWidth) @@ -527,8 +527,8 @@ std::wstring RtfShape::RenderToRtfShapeProperty(RenderParameter oRenderParameter RENDER_RTF_SHAPE_PROP(L"o:bordertopcolor", sResult, m_nBorderTopColor); RENDER_RTF_SHAPE_PROP(L"o:borderleftcolor", sResult, m_nBorderLeftColor); - RENDER_RTF_SHAPE_PROP(L"o:borderbottomcolor", sResult, m_nBorderRightColor); - RENDER_RTF_SHAPE_PROP(L"o:borderrightcolor", sResult, m_nBorderBottomColor); + RENDER_RTF_SHAPE_PROP(L"o:borderbottomcolor", sResult, m_nBorderBottomColor); + RENDER_RTF_SHAPE_PROP(L"o:borderrightcolor", sResult, m_nBorderRightColor); //Position relative RENDER_RTF_SHAPE_PROP(L"pctHorizPos", sResult, m_nPositionHPct);