Commit 25abe29f authored by GoshaZotov's avatar GoshaZotov

add default image size

parent 43aebcfb
......@@ -1882,6 +1882,9 @@ function PasteProcessor(api, bUploadImage, bUploadFonts, bNested, pasteInExcel)
this.bUseScaleKoef = false;
this.bIsPlainText = false;
this.defaultImgWidth = 50;
this.defaultImgHeight = 50;
this.MsoStyles = {"mso-style-type": 1, "mso-pagination": 1, "mso-line-height-rule": 1, "mso-style-textfill-fill-color": 1, "mso-tab-count": 1,
"tab-stops": 1, "list-style-type": 1, "mso-special-character": 1, "mso-column-break-before": 1, "mso-break-type": 1, "mso-padding-alt": 1, "mso-border-insidev": 1,
"mso-border-insideh": 1, "mso-row-margin-left": 1, "mso-row-margin-right": 1, "mso-cellspacing": 1, "mso-border-alt": 1,
......@@ -6019,6 +6022,16 @@ PasteProcessor.prototype =
nWidth = or_sz.Width / g_dKoef_pix_to_mm;
nHeight = or_sz.Height / g_dKoef_pix_to_mm;
}
if(!nWidth)
{
nWidth = this.defaultImgWidth / g_dKoef_pix_to_mm;
}
if(!nHeight)
{
nHeight = this.defaultImgHeight / g_dKoef_pix_to_mm;
}
if(nWidth && nHeight && sSrc)
{
var sSrc = this.oImages[sSrc];
......
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