From 119dc90ca0901f5adc108171224e89bcb4e05b15 Mon Sep 17 00:00:00 2001 From: "liana.bakradze" Date: Wed, 20 Jul 2016 11:54:18 +0300 Subject: [PATCH] EDU-683 Do not show placeholders from previous steps in student mode --- .../edu/learning/core/EduAnswerPlaceholderPainter.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/python/educational-core/student/src/com/jetbrains/edu/learning/core/EduAnswerPlaceholderPainter.java b/python/educational-core/student/src/com/jetbrains/edu/learning/core/EduAnswerPlaceholderPainter.java index 3dcdb43c64a4..5c83a89af989 100644 --- a/python/educational-core/student/src/com/jetbrains/edu/learning/core/EduAnswerPlaceholderPainter.java +++ b/python/educational-core/student/src/com/jetbrains/edu/learning/core/EduAnswerPlaceholderPainter.java @@ -56,6 +56,9 @@ public class EduAnswerPlaceholderPainter { } public static void drawAnswerPlaceholderFromPrevStep(@NotNull Editor editor, @NotNull AnswerPlaceholder placeholder) { + if (placeholder.getUseLength()) { + return; + } EditorColorsScheme scheme = EditorColorsManager.getInstance().getGlobalScheme(); Color color = scheme.getColor(EditorColors.TEARLINE_COLOR); SimpleTextAttributes attributes = SimpleTextAttributes.GRAY_ATTRIBUTES; -- 2.23.3