경로없을 경우 이미지 메모 처리 수정

master
mjkhan21 4 months ago
parent f1078395b0
commit 674cb492eb

@ -4,6 +4,7 @@ import java.util.ArrayList;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
import java.util.function.Supplier; import java.util.function.Supplier;
import java.util.stream.IntStream;
import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.core.type.TypeReference;
@ -21,6 +22,10 @@ public class CellDef {
/** 빈 셀 정보 */ /** 빈 셀 정보 */
public static CellDef EMPTY = new CellDef().setLabel("").setField(""); public static CellDef EMPTY = new CellDef().setLabel("").setField("");
public static int[] intArray(int endExclusive) {
return IntStream.range(0, endExclusive).toArray();
}
/**CellDef . /**CellDef .
* @param defs CellDef * @param defs CellDef
* @param factory function * @param factory function

@ -15,6 +15,8 @@ import com.microsoft.schemas.vml.CTFill;
import com.microsoft.schemas.vml.CTShape; import com.microsoft.schemas.vml.CTShape;
import com.microsoft.schemas.vml.STFillType; import com.microsoft.schemas.vml.STFillType;
import cokr.xit.foundation.Assert;
/**() /**()
* @author mjkhan * @author mjkhan
*/ */
@ -82,6 +84,8 @@ public class Comment {
* @param path * @param path
*/ */
public void setImageComment(String path) { public void setImageComment(String path) {
if (Assert.isEmpty(path)) return;
create(""); create("");
setBackgroundImage("", path); setBackgroundImage("", path);
} }

Loading…
Cancel
Save