From 50f7176caa57b9a9a5ed12d05c4969fc00bc4e31 Mon Sep 17 00:00:00 2001
From: Anton Leherbauer <anton.leherbauer@windriver.com>
Date: Tue, 25 Jul 2006 13:29:59 +0000
Subject: [PATCH] Use correct translation unit filename for comparison

---
 .../internal/ui/editor/CSourceViewerDecorationSupport.java   | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/editor/CSourceViewerDecorationSupport.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/editor/CSourceViewerDecorationSupport.java
index 80f84243786..ad5a1f0ec79 100644
--- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/editor/CSourceViewerDecorationSupport.java
+++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/editor/CSourceViewerDecorationSupport.java
@@ -90,7 +90,8 @@ public class CSourceViewerDecorationSupport
 			if (fASTTranslationUnit == null && fTranslationUnit != null) {
 				try {
 					fParseTimeStamp = System.currentTimeMillis();
-					fASTTranslationUnit = fTranslationUnit.getLanguage().getASTTranslationUnit(fTranslationUnit, ILanguage.AST_SKIP_IF_NO_BUILD_INFO | ILanguage.AST_SKIP_INDEXED_HEADERS);
+					int style = ILanguage.AST_SKIP_IF_NO_BUILD_INFO | ILanguage.AST_SKIP_INDEXED_HEADERS;
+					fASTTranslationUnit = fTranslationUnit.getLanguage().getASTTranslationUnit(fTranslationUnit, style);
 				} catch (CoreException exc) {
 					result = exc.getStatus();
 				}
@@ -431,7 +432,7 @@ public class CSourceViewerDecorationSupport
 		if (translationUnit == null) {
 			return Collections.EMPTY_LIST;
 		}
-		String fileName = translationUnit.getContainingFilename();
+		String fileName = translationUnit.getFilePath();
 		if (fileName == null) {
 			return Collections.EMPTY_LIST;
 		}