Skip to content

Fix RTF shape crop property mapping#82

Draft
vixco wants to merge 1 commit into
Euro-Office:mainfrom
vixco:fix/rtf-shape-crop-properties
Draft

Fix RTF shape crop property mapping#82
vixco wants to merge 1 commit into
Euro-Office:mainfrom
vixco:fix/rtf-shape-crop-properties

Conversation

@vixco
Copy link
Copy Markdown

@vixco vixco commented May 29, 2026

Summary

  • Map cropFromLeft to m_nCropFromLeft.
  • Map cropFromRight to m_nCropFromRight.

Why

The RTF shape property reader had two copy/paste assignments in the picture crop block:

  • cropFromLeft was stored in m_nCropFromRight.
  • cropFromRight was stored in m_nCropFromTop.

This can make imported RTF picture cropping use the wrong side. The assignments now match the field names, the RTF shape serializer, and the OOXML/MS binary crop readers in this repository.

Validation

  • Ran git diff --check.
  • Checked RtfShape crop field definitions.
  • Checked RtfShape RTF serialization for the same crop properties.

Signed-off-by: vixco <93612321+vixco@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant