From: liana.bakradze Date: Thu, 28 Jul 2016 16:19:44 +0000 (+0300) Subject: EDU-691 Course creator: Typing in answer placeholder doesn't change it's possible... X-Git-Tag: dbe/163.2021~11 X-Git-Url: http://git.jetbrains.org/?p=idea%2Fcommunity.git;a=commitdiff_plain;h=d7563b05e1b2c282ae1a4ebd0c3e37fdb0b6b6a7 EDU-691 Course creator: Typing in answer placeholder doesn't change it's possible answer --- diff --git a/python/educational-core/student/src/com/jetbrains/edu/learning/core/EduDocumentListener.java b/python/educational-core/student/src/com/jetbrains/edu/learning/core/EduDocumentListener.java index 61cf2c5c3845..8cb13731ac97 100644 --- a/python/educational-core/student/src/com/jetbrains/edu/learning/core/EduDocumentListener.java +++ b/python/educational-core/student/src/com/jetbrains/edu/learning/core/EduDocumentListener.java @@ -73,7 +73,7 @@ public class EduDocumentListener extends DocumentAdapter { if (answerPlaceholder.getUseLength()) { answerPlaceholder.setLength(length); } else { - answerPlaceholder.setPossibleAnswer(document.getText(TextRange.create(twStart, twStart + answerPlaceholder.getRealLength()))); + answerPlaceholder.setPossibleAnswer(document.getText(TextRange.create(twStart, twStart + length))); } } }