<table><tr><td style="">sirgienko created this revision.<br />sirgienko added reviewers: Cantor, asemke.<br />sirgienko added a project: Cantor.<br />Restricted Application added a subscriber: KDE Edu.<br />Restricted Application added a project: KDE Edu.<br />sirgienko requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D11962">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Before, if you save worksheet and load it, you have see, that after each line have added empty entry. It happens, because command entry after placing result checks existence next entry. If entry don't exist, the command entry add new empty command entry, so worksheet always have empty entry on the end of the worksheet. But when we load entries from file, we haven't empty entry on the end, because we place entries one by one. So each time, when we place command from file, the command after placing result (from file too) add empty entry. It fix this problem by adding check before adding empty entry, that we don't load entries from file.</p></div></div><br /><div><strong>TEST PLAN</strong><div><ol class="remarkup-list">
<li class="remarkup-list-item">Write multiline worksheet</li>
<li class="remarkup-list-item">Save it</li>
<li class="remarkup-list-item">Close it</li>
<li class="remarkup-list-item">Open it</li>
<li class="remarkup-list-item">Checks, that there aren't unnesesary empty entries.</li>
</ol></div></div><br /><div><strong>REPOSITORY</strong><div><div>R55 Cantor</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D11962">https://phabricator.kde.org/D11962</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/worksheet.cpp<br />
src/worksheet.h<br />
src/worksheetentry.cpp</div></div></div><br /><div><strong>To: </strong>sirgienko, Cantor, asemke<br /><strong>Cc: </strong>Cantor, KDE Edu, narvaez, apol<br /></div>