fix serialization
authorliana.bakradze <liana.bakradze@jetbrains.com>
Fri, 8 Apr 2016 13:33:38 +0000 (16:33 +0300)
committerliana.bakradze <liana.bakradze@jetbrains.com>
Fri, 8 Apr 2016 13:33:38 +0000 (16:33 +0300)
python/educational-core/course-creator/src/com/jetbrains/edu/coursecreator/ui/CCCreateAnswerPlaceholderDialog.java

index 5f984acf1d95b40fc0308e99912dcf95a62cdf39..68470f1e40dff66f63eb2223c1882e3b059734a3 100644 (file)
@@ -53,6 +53,8 @@ public class CCCreateAnswerPlaceholderDialog extends DialogWrapper {
     myAnswerPlaceholder.setTaskText(StringUtil.notNullize(answerPlaceholderText));
     myAnswerPlaceholder.setLength(StringUtil.notNullize(answerPlaceholderText).length());
     myAnswerPlaceholder.setHint(myPanel.getHintText());
+    AnswerPlaceholder.MyInitialState initialState = new AnswerPlaceholder.MyInitialState(myAnswerPlaceholder.getLine(), answerPlaceholderText.length(), myAnswerPlaceholder.getStart());
+    myAnswerPlaceholder.setInitialState(initialState);
     super.doOKAction();
   }