mirror of
https://github.com/ONLYOFFICE/sdkjs.git
synced 2026-04-07 14:09:12 +08:00
Fix bug #71812
This commit is contained in:
@ -4337,6 +4337,19 @@ var CPresentation = CPresentation || function(){};
|
||||
|
||||
if (oDrawing) {
|
||||
oDrawing.fromXml(oXmlReader);
|
||||
if (oDrawing.IsShape()) {
|
||||
let new_body_pr = oDrawing.getBodyPr();
|
||||
if (new_body_pr) {
|
||||
new_body_pr = new_body_pr.createDuplicate();
|
||||
new_body_pr.textFit = new AscFormat.CTextFit();
|
||||
new_body_pr.textFit.type = AscFormat.text_fit_Auto;
|
||||
|
||||
if (oDrawing.txBody) {
|
||||
oDrawing.txBody.setBodyPr(new_body_pr);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
oDrawing.setBDeleted(false);
|
||||
aPageDrawings.push(oDrawing);
|
||||
oDrawing.CheckTextOnOpen();
|
||||
|
||||
@ -54,7 +54,7 @@
|
||||
CPdfDrawingPrototype.prototype.IsForm = function() {
|
||||
return false;
|
||||
};
|
||||
CPdfDrawingPrototype.prototype.IsTextShape = function() {
|
||||
CPdfDrawingPrototype.prototype.IsShape = function() {
|
||||
return false;
|
||||
};
|
||||
CPdfDrawingPrototype.prototype.IsImage = function() {
|
||||
|
||||
@ -44,7 +44,7 @@
|
||||
CPdfShape.prototype = Object.create(AscFormat.CShape.prototype);
|
||||
Object.assign(CPdfShape.prototype, AscPDF.PdfDrawingPrototype.prototype);
|
||||
|
||||
CPdfShape.prototype.IsTextShape = function() {
|
||||
CPdfShape.prototype.IsShape = function() {
|
||||
return true;
|
||||
};
|
||||
CPdfShape.prototype.ShouldDrawImaginaryBorder = function(graphicsWord) {
|
||||
|
||||
@ -2176,7 +2176,7 @@ TextAddState.prototype =
|
||||
return {cursorType: "default", objectId: oCheckObject.Get_Id()};
|
||||
}
|
||||
else if (Asc.editor.isPdfEditor()) {
|
||||
if (oCheckObject.IsTextShape()) {
|
||||
if (oCheckObject.IsShape()) {
|
||||
return {cursorType: "text", objectId: oCheckObject.Get_Id()};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user