diff options
-rw-r--r-- | sw/source/filter/ww8/ww8graf.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sw/source/filter/ww8/ww8graf.cxx b/sw/source/filter/ww8/ww8graf.cxx index 4e7a454ab773..7768680d8b2c 100644 --- a/sw/source/filter/ww8/ww8graf.cxx +++ b/sw/source/filter/ww8/ww8graf.cxx @@ -2629,7 +2629,11 @@ SwFrameFormat* SwWW8ImplReader::Read_GrafLayer( tools::Long nGrafAnchorCp ) eSurround = css::text::WrapTextMode_NONE; break; case 3: // 3 wrap as if no object present - eSurround = css::text::WrapTextMode_THROUGH; + // Special case: on export, inline images are wrapped through as a hack for old formats. + // That is irrelevant for Writer, so instead use the default wrap in that case, + // so that when the user changes it into an anchor, it wraps nicely, and not through. + if (!IsInlineEscherHack()) + eSurround = css::text::WrapTextMode_THROUGH; break; case 4: // 4 wrap tightly around object case 5: // 5 wrap tightly, but allow holes |