From 39c8cf14fdcd6fc61ac928d0648c052fb4dd9152 Mon Sep 17 00:00:00 2001 From: Sergey Prigogin Date: Tue, 6 Jan 2015 15:40:33 -0800 Subject: [PATCH] Fixed include guard adjustment when renaming a project. --- .../cdt/internal/corext/codemanipulation/StubUtility.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/corext/codemanipulation/StubUtility.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/corext/codemanipulation/StubUtility.java index c40bb7ab417..0e0cbcbf9cd 100644 --- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/corext/codemanipulation/StubUtility.java +++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/corext/codemanipulation/StubUtility.java @@ -679,6 +679,8 @@ public class StubUtility { ISourceRoot root = cproject.findSourceRoot(file); if (root != null) { path = PathUtil.makeRelativePath(path, root.getPath()); + } else { + path = PathUtil.makeRelativePath(path, cproject.getPath()); } return generateIncludeGuardSymbolFromFilePath(path.toString());