Skip to content

Commit

Permalink
allow to fill images
Browse files Browse the repository at this point in the history
  • Loading branch information
SergeyLuzyanin committed Dec 12, 2024
1 parent b4246fb commit e895698
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion common/Drawings/CommonController.js
Original file line number Diff line number Diff line change
Expand Up @@ -7404,7 +7404,7 @@

new_shape_props =
{
canFill: false,
canFill: drawing.canFill(),
type: drawing.getPresetGeom(),
fill: drawing.getFill(),
stroke: drawing.getStroke(),
Expand Down
4 changes: 3 additions & 1 deletion common/Drawings/Format/Image.js
Original file line number Diff line number Diff line change
Expand Up @@ -904,7 +904,9 @@
CImageShape.prototype.getText = function() {
return null;
};

CImageShape.prototype.canFill = function () {
return true;
};

function CreateBrushFromBlipFill(oBlipFill) {
if (!oBlipFill) {
Expand Down

0 comments on commit e895698

Please sign in to comment.