Explorar o código

resolved #691, fix the scale for add picture not work

xuri %!s(int64=5) %!d(string=hai) anos
pai
achega
3c8c8c55c8
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      picture.go

+ 3 - 0
picture.go

@@ -253,6 +253,9 @@ func (f *File) addDrawingPicture(sheet, drawingXML, cell, file string, width, he
 		if err != nil {
 			return err
 		}
+	} else {
+		width = int(float64(width) * formatSet.XScale)
+		height = int(float64(height) * formatSet.YScale)
 	}
 	col--
 	row--