From: <jde...@us...> - 2009-01-31 09:09:17
|
Revision: 9179 http://pcgen.svn.sourceforge.net/pcgen/?rev=9179&view=rev Author: jdempsey Date: 2009-01-31 09:09:12 +0000 (Sat, 31 Jan 2009) Log Message: ----------- Fix ClassCastException when using Quick sources and click filter button Modified Paths: -------------- Trunk/pcgen/code/src/java/pcgen/gui/PCGen_Frame1.java Modified: Trunk/pcgen/code/src/java/pcgen/gui/PCGen_Frame1.java =================================================================== --- Trunk/pcgen/code/src/java/pcgen/gui/PCGen_Frame1.java 2009-01-31 05:51:24 UTC (rev 9178) +++ Trunk/pcgen/code/src/java/pcgen/gui/PCGen_Frame1.java 2009-01-31 09:09:12 UTC (rev 9179) @@ -309,7 +309,11 @@ if (index == 0) { - return (Filterable) getBaseTabbedPane().getComponentAt(index); + Object tab = getBaseTabbedPane().getComponentAt(index); + if (tab instanceof Filterable) + { + return (Filterable) tab; + } } else if (index >= FIRST_CHAR_TAB) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |