core/com.nokia.carbide.cpp.ui/src/com/nokia/carbide/cpp/internal/ui/images/MaskedFileImageModel.java
changeset 446 8cd2a2915e7b
parent 0 fb279309251b
child 448 f67171885c66
--- a/core/com.nokia.carbide.cpp.ui/src/com/nokia/carbide/cpp/internal/ui/images/MaskedFileImageModel.java	Fri Aug 14 14:35:32 2009 -0500
+++ b/core/com.nokia.carbide.cpp.ui/src/com/nokia/carbide/cpp/internal/ui/images/MaskedFileImageModel.java	Tue Aug 18 11:45:34 2009 -0500
@@ -62,6 +62,9 @@
 			else
 				maskSourceLocation = basePath.append(maskPath);
 		}
+		if (maskSourceLocation != null && maskSourceLocation.getDevice() == null){
+			maskSourceLocation = maskSourceLocation.setDevice(basePath.getDevice());
+		}
 	}
 
 	/**
@@ -81,6 +84,9 @@
 			else
 				maskSourceLocation = basePath.append(maskPath);
 		}
+		if (maskSourceLocation != null && maskSourceLocation.getDevice() == null){
+			maskSourceLocation = maskSourceLocation.setDevice(basePath.getDevice());
+		}
 	}