# HG changeset patch # User timkelly # Date 1250613934 18000 # Node ID 8cd2a2915e7bb4e358d0e01ef4853c9e350af970 # Parent 281526d91b6484d611786278a5b3c3b017724669 bug 9642. Apply drive spec of project for bitmaps defined with full path (i.e. /epoc32/....) diff -r 281526d91b64 -r 8cd2a2915e7b core/com.nokia.carbide.cpp.ui/src/com/nokia/carbide/cpp/internal/ui/images/FileImageModel.java --- a/core/com.nokia.carbide.cpp.ui/src/com/nokia/carbide/cpp/internal/ui/images/FileImageModel.java Fri Aug 14 14:35:32 2009 -0500 +++ b/core/com.nokia.carbide.cpp.ui/src/com/nokia/carbide/cpp/internal/ui/images/FileImageModel.java Tue Aug 18 11:45:34 2009 -0500 @@ -59,6 +59,11 @@ this.sourceLocation = basePath != null && filePath.getDevice() == null && !filePath.isAbsolute() ? basePath.append(filePath) : filePath; } + + if (sourceLocation.getDevice() == null){ + sourceLocation = sourceLocation.setDevice(basePath.getDevice()); + } + } /** diff -r 281526d91b64 -r 8cd2a2915e7b core/com.nokia.carbide.cpp.ui/src/com/nokia/carbide/cpp/internal/ui/images/MaskedFileImageModel.java --- 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()); + } }