mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
set correct length for placeholders invisible from prev subtasks
This commit is contained in:
+1
-1
@@ -32,7 +32,7 @@ public class CCEditAnswerPlaceholder extends CCAnswerPlaceholderAction {
|
||||
if (dlg.showAndGet()) {
|
||||
final String answerPlaceholderText = dlg.getTaskText();
|
||||
answerPlaceholder.setTaskText(answerPlaceholderText);
|
||||
answerPlaceholder.setLength(StringUtil.notNullize(answerPlaceholderText).length());
|
||||
answerPlaceholder.setLength(answerPlaceholder.getActiveSubtaskInfo().isNeedInsertText() ? 0 : StringUtil.notNullize(answerPlaceholderText).length());
|
||||
answerPlaceholder.setHints(dlg.getHints());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user