Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergey Prigogin2015-01-06 23:40:33 +0000
committerSergey Prigogin2015-01-06 23:40:33 +0000
commit39c8cf14fdcd6fc61ac928d0648c052fb4dd9152 (patch)
treee51ca96559651ff0b519fb92b5901b2b7c77392c
parent4efe6e815ed4ec8bb87b108c5cf0da022bd822b0 (diff)
downloadorg.eclipse.cdt-39c8cf14fdcd6fc61ac928d0648c052fb4dd9152.tar.gz
org.eclipse.cdt-39c8cf14fdcd6fc61ac928d0648c052fb4dd9152.tar.xz
org.eclipse.cdt-39c8cf14fdcd6fc61ac928d0648c052fb4dd9152.zip
Fixed include guard adjustment when renaming a project.
-rw-r--r--core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/corext/codemanipulation/StubUtility.java2
1 files changed, 2 insertions, 0 deletions
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());

Back to the top