Skip to content

Commit

Permalink
fix point error, removed rotate reset
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnyblasta committed Jan 30, 2024
1 parent 4d4fa00 commit 41dded5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/style/stylewindow.js
Original file line number Diff line number Diff line change
Expand Up @@ -299,8 +299,10 @@ const Stylewindow = function Stylewindow(optOptions = {}) {
document.getElementById('o-draw-style-showMeasureSegments').checked = swStyle.showMeasureSegments;

const bgFillEl = document.getElementById('o-draw-style-backgroundFillColor');
swStyle.backgroundFillOpacity = rgbaToOpacity(swStyle.backgroundFill);
swStyle.backgroundFillColor = rgbaToRgb(swStyle.backgroundFill);
if (typeof swStyle.backgroundFill !== 'undefined') {
swStyle.backgroundFillOpacity = rgbaToOpacity(swStyle.backgroundFill);
swStyle.backgroundFillColor = rgbaToRgb(swStyle.backgroundFill);
}
const bgFillInputEl = bgFillEl.querySelector(`input[value = "${swStyle.backgroundFillColor}"]`);
if (bgFillInputEl) {
bgFillInputEl.checked = true;
Expand Down Expand Up @@ -487,7 +489,6 @@ const Stylewindow = function Stylewindow(optOptions = {}) {
}
if (newStyleObj.selected) {
style.push(drawStyles.selectionStyle);
swStyle.objRotation = 0;
}
return style;
}
Expand Down

0 comments on commit 41dded5

Please sign in to comment.