Author: lgiessmann Date: Mon Sep 12 00:10:55 2011 New Revision: 863
Log: gdl-frontend: Widgets: fixed a a potential bug in TmHelper.hashThemes(...)
Modified: branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/base/TmHelper.java
Modified: branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/base/TmHelper.java ============================================================================== --- branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/base/TmHelper.java Sun Sep 11 23:31:15 2011 (r862) +++ branches/gdl-frontend/src/anaToMia/GDL_Widgets/src/us/isidor/gdl/anaToMia/Widgets/base/TmHelper.java Mon Sep 12 00:10:55 2011 (r863) @@ -8,6 +8,7 @@ import us.isidor.gdl.anaToMia.TopicMaps.TopicMapsModel.Name; import us.isidor.gdl.anaToMia.TopicMaps.TopicMapsModel.Occurrence; import us.isidor.gdl.anaToMia.TopicMaps.TopicMapsModel.Role; +import us.isidor.gdl.anaToMia.TopicMaps.TopicMapsModel.Scoped; import us.isidor.gdl.anaToMia.TopicMaps.TopicMapsModel.ScopedStub; import us.isidor.gdl.anaToMia.TopicMaps.TopicMapsModel.Topic; import us.isidor.gdl.anaToMia.TopicMaps.TopicMapsModel.TopicMap; @@ -274,7 +275,7 @@ // returns true if the topics of themes are all equal to the scope of construct - public static boolean hasThemes(Construct construct, ArrayList<Topic> themes){ + public static boolean hasThemes(Scoped construct, ArrayList<Topic> themes){ if(construct == null) return false; if(themes == null) return ((ScopedStub)construct).getScope().length() == 0;