Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Table Row 추가 시 HWP가 Crash 합니다 #19

Closed
yhware opened this issue May 31, 2018 · 1 comment
Closed

Table Row 추가 시 HWP가 Crash 합니다 #19

yhware opened this issue May 31, 2018 · 1 comment

Comments

@yhware
Copy link

yhware commented May 31, 2018

안녕하세요 ^^

만들어주신 라이브러리 잘 쓰다가 테이블 조작에서 문제가 발생해 문의사항 남깁니다.

ControlTable distNRetrieveTable = (ControlTable) tables.get(1); ArrayList<Row> distNRetrieveRows = distNRetrieveTable.getRowList(); distNRetrieveTable.addNewRow().addNewCell();

위와 같은 경우에 기존에 있는 테이블을 하나 선택하여 새로운 Row를 추가할려고 했는데 이럴경우
실행은 잘 되지만 새로 저장된 문서를 HWP 로 실행 시 프로그램이 Crash 됩니다.
정확히는 addNewRow() 만 적용 하였을 경우 Crash 하고 addNewCell() 까지 넣으면 HWP가 손상된 테이블이 있다며 복원하겠냐고 물어봅니다.

현재 사용하는 버전은 다음과 같습니다.

문서 버전 : 5.0.4.0.1
프로그램 버전: 9.0.0.562

@neolord0
Copy link
Owner

neolord0 commented Jun 1, 2018

음.. 지금은 초기값이 들어가지 않습니다.. --;
addNewRow() 한 후... row에 적당한 값 설정해 주셔합니다. 마찬가지로 addNewCell로 비슷한 상황입니다.

hwplib / src / kr / dogfoot / hwplib / test / TestMakingTable.java 에 있는 예제를 참고하세요..

이 예제를 보시면 아시겠지만, 한글 표 구조가 복잡합니다. 행을 추가하면 어디어디를 바꾸어야 하고
셀을 추가하면 셀과 합께 특정 객체를 추가해 줘야 하는 등 할일이 좀 많습니다.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants