Commit 1671cfe5 authored by konovalovsergey's avatar konovalovsergey

fix bug 34457

parent 5ad6f67e
...@@ -4631,7 +4631,14 @@ function CBinaryFileWriter() ...@@ -4631,7 +4631,14 @@ function CBinaryFileWriter()
case AscDFH.historyitem_type_OleObject: case AscDFH.historyitem_type_OleObject:
case AscDFH.historyitem_type_ImageShape: case AscDFH.historyitem_type_ImageShape:
{ {
this.WriteImage(grObject); if(grObject.bWordShape)
{
this.WriteImage(grObject);
}
else
{
this.WriteImage2(grObject);
}
break; break;
} }
case AscDFH.historyitem_type_GroupShape: case AscDFH.historyitem_type_GroupShape:
...@@ -4728,6 +4735,12 @@ function CBinaryFileWriter() ...@@ -4728,6 +4735,12 @@ function CBinaryFileWriter()
_writer.EndRecord(); _writer.EndRecord();
} }
this.WriteImage2 = function(image)
{
var _writer = this.BinaryFileWriter;
_writer.WriteImage(image);
}
this.WriteImage = function(image) this.WriteImage = function(image)
{ {
var _writer = this.BinaryFileWriter; var _writer = this.BinaryFileWriter;
...@@ -4827,7 +4840,14 @@ function CBinaryFileWriter() ...@@ -4827,7 +4840,14 @@ function CBinaryFileWriter()
case AscDFH.historyitem_type_OleObject: case AscDFH.historyitem_type_OleObject:
case AscDFH.historyitem_type_ImageShape: case AscDFH.historyitem_type_ImageShape:
{ {
this.WriteImage(elem); if(elem.bWordShape)
{
this.WriteImage(elem);
}
else
{
this.WriteImage2(elem);
}
break; break;
} }
case AscDFH.historyitem_type_GroupShape: case AscDFH.historyitem_type_GroupShape:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment