From 25232db42dc948a344b0f795d5a5f1ec44430b03 Mon Sep 17 00:00:00 2001 From: Anton Leherbauer Date: Wed, 25 Oct 2006 19:10:09 +0000 Subject: [PATCH] Follow-up fix for bug 161529 --- .../org/eclipse/cdt/internal/ui/editor/OpenIncludeAction.java | 1 + 1 file changed, 1 insertion(+) diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/editor/OpenIncludeAction.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/editor/OpenIncludeAction.java index 72d8adfc0b6..71e173fb1e2 100644 --- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/editor/OpenIncludeAction.java +++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/editor/OpenIncludeAction.java @@ -210,6 +210,7 @@ public class OpenIncludeAction extends Action { IPath rPath = proxy.requestResource().getLocation(); int numSegToRemove = rPath.segmentCount() - name.segmentCount(); IPath sPath = rPath.removeFirstSegments(numSegToRemove); + sPath = sPath.setDevice(name.getDevice()); if (sPath.equals(name)) list.add(rPath); return false;