Skip to content

Commit

Permalink
[ve] Disable invert gradient; Fix bug 72172
Browse files Browse the repository at this point in the history
  • Loading branch information
fedek1324 committed Jan 16, 2025
1 parent bd2db14 commit 2858904
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions visio/model/ooxmlApi/convertFunctions.js
Original file line number Diff line number Diff line change
Expand Up @@ -1430,12 +1430,13 @@
if (gradientEnabled) {
let fillGradientDir = this.getCellNumberValue("FillGradientDir");

let invertGradient = false;
// global matrix transform: invert Y axis causes 0 is bottom of gradient and 100000 is top
let invertGradient = !isInvertCoords;
if (fillGradientDir === 3) {
// radial gradient seems to be handled in another way
invertGradient = isInvertCoords;
}
// let invertGradient = !isInvertCoords;
// if (fillGradientDir === 3) {
// // radial gradient seems to be handled in another way
// invertGradient = isInvertCoords;
// }

// now let's come through gradient stops
let fillGradientStopsSection = this.getSection("FillGradient");
Expand Down

0 comments on commit 2858904

Please sign in to comment.