D19532: Don't crash when no contexts are present

Dāvis Mosāns noreply at phabricator.kde.org
Tue Mar 5 19:16:44 GMT 2019


davispuh added a comment.


  In D19532#425381 <https://phabricator.kde.org/D19532#425381>, @cullmann wrote:
  
  > Calling the ::get is no issue.
  
  
  That's good then, but we can't use `applyFormat(0, text.size(), Format());` because Kate asserts when `!Format->isValid()` which it won't be so we have to  `return State();` and also see D19533 <https://phabricator.kde.org/D19533>

REPOSITORY
  R216 Syntax Highlighting

REVISION DETAIL
  https://phabricator.kde.org/D19532

To: davispuh, cullmann, dhaumann, vandenoever
Cc: kwrite-devel, kde-frameworks-devel, gennad, domson, michaelh, ngraham, bruns, demsking, cullmann, sars, dhaumann
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kwrite-devel/attachments/20190305/b1d46b2b/attachment.html>


More information about the KWrite-Devel mailing list