View | Details | Raw Unified | Return to bug 56864
Collapse All | Expand All

(-)src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFLatentStyles.java (-1 / +1 lines)
Lines 40-46 Link Here
40
	*/
40
	*/
41
	protected boolean isLatentStyle(String latentStyleID){	
41
	protected boolean isLatentStyle(String latentStyleID){	
42
		for ( CTLsdException lsd: latentStyles.getLsdExceptionList()) {
42
		for ( CTLsdException lsd: latentStyles.getLsdExceptionList()) {
43
			if(lsd.getName().equals(latentStyleID));
43
			if(lsd.getName().equals(latentStyleID))
44
				return true;
44
				return true;
45
		}
45
		}
46
		return false;		
46
		return false;		
(-)src/ooxml/testcases/org/apache/poi/xwpf/usermodel/TestXWPFStyles.java (-1 / +1 lines)
Lines 116-121 Link Here
116
        ex.setName("ex1");
116
        ex.setName("ex1");
117
        XWPFLatentStyles ls = new XWPFLatentStyles(latentStyles);
117
        XWPFLatentStyles ls = new XWPFLatentStyles(latentStyles);
118
        assertEquals(true, ls.isLatentStyle("ex1"));
118
        assertEquals(true, ls.isLatentStyle("ex1"));
119
119
        assertEquals(false, ls.isLatentStyle("notex1"));
120
    }
120
    }
121
}
121
}

Return to bug 56864