Skip to content

Commit

Permalink
[ve] Handle gradiends if gradient enabled despite of fill pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
fedek1324 committed Dec 11, 2024
1 parent a7f2a8f commit 475a4de
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion visio/model/ooxmlApi/convertFunctions.js
Original file line number Diff line number Diff line change
Expand Up @@ -1572,7 +1572,9 @@
if (!isNaN(fillPatternType) && uniFillBkgnd && uniFillForegnd) {
// https://learn.microsoft.com/ru-ru/office/client-developer/visio/fillpattern-cell-fill-format-section
let isfillPatternTypeGradient = fillPatternType >= 25 && fillPatternType <= 40;
if (fillPatternType === 0) {
if (gradientEnabled) {
uniFillForegndWithPattern = uniFillForegnd;
} else if (fillPatternType === 0) {
uniFillForegndWithPattern = AscFormat.CreateNoFillUniFill();
} else if (fillPatternType === 1 || isfillPatternTypeGradient) {
uniFillForegndWithPattern = uniFillForegnd;
Expand Down

0 comments on commit 475a4de

Please sign in to comment.