https://bz.apache.org/bugzilla/show_bug.cgi?id=63494

Pramod <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |RESOLVED
         Resolution|---                         |WORKSFORME

--- Comment #2 from Pramod <[email protected]> ---
This issue is now fixed for me.
i have added below lines of code when relationship type is Shared String:

sd = SstDocument.Factory.parse(p.getInputStream());
                        targetsd =
SstDocument.Factory.parse(partTarget.getInputStream());
                        List<CTRst> ctRstArray = sd.getSst().getSiList();
                        String sharedString = null;
                        for (CTRst ctRst : ctRstArray) {
                                if(ctRst.getRList() != null &&
ctRst.getRList().size()>0){
                                        List<CTRElt> rList = ctRst.getRList();
                                       
targetsd.getSst().addNewSi().getRList().addAll(rList);
                                }else if(ctRst.getRPhList() != null &&
ctRst.getRPhList().size() > 0){
                                        List<CTPhoneticRun> rphList =
ctRst.getRPhList();
                                       
targetsd.getSst().addNewSi().getRPhList().addAll(rphList);
                                }else {
                                        sharedString = ctRst.getT();
                                        CTRst ctrst =
targetsd.getSst().addNewSi();
                                        ctrst.setT(sharedString);
                                }
                        }



earlier the lines of code was:

sd = SstDocument.Factory.parse(p.getInputStream());
                        targetsd =
SstDocument.Factory.parse(partTarget.getInputStream());
                        List<CTRst> ctRstArray = sd.getSst().getSiList();
                        String sharedString = null;
                        for (CTRst ctRst : ctRstArray) {

                                        sharedString = ctRst.getT();
                                        CTRst ctrst =
targetsd.getSst().addNewSi();
                                        ctrst.setT(sharedString);               
                        }

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to