From eab51d75fe81bf1e4cf225862dbd3684d4c1da70 Mon Sep 17 00:00:00 2001 From: Sergey Fedorov Evgenyevich Date: Thu, 8 Nov 2018 14:09:29 +0400 Subject: [PATCH] MS Office opens XLS report with Protected View #90 --- .../yarg/formatters/impl/xls/caches/XslStyleHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/modules/core/src/com/haulmont/yarg/formatters/impl/xls/caches/XslStyleHelper.java b/core/modules/core/src/com/haulmont/yarg/formatters/impl/xls/caches/XslStyleHelper.java index 9fd697bf..68c82a15 100644 --- a/core/modules/core/src/com/haulmont/yarg/formatters/impl/xls/caches/XslStyleHelper.java +++ b/core/modules/core/src/com/haulmont/yarg/formatters/impl/xls/caches/XslStyleHelper.java @@ -49,7 +49,7 @@ public static void cloneStyleRelations(HSSFCellStyle source, HSSFCellStyle targe InternalWorkbook targetWorkbook = getWorkbookFromStyle(target); if (targetWorkbook != sourceWorkbook) { //Then we need to clone the format string, and update the format record for this - short fmt = sourceWorkbook.getFormat(source.getDataFormatString(), true); + short fmt = targetWorkbook.getFormat(source.getDataFormatString(), true); target.setDataFormat(fmt); } }