Revision 5baccc9...

Go back to digest for 27th April 2014

Bug Fixes in Utilities

Harald Sitter committed changes in [libqapt/2.2] /:

Prevent crashes on source entries that contain a line like "##"

Simply ensure that while we are stripping # the string retains the
QString::at(i) requirement of i being a valid index (which requires the
size() to be greater than 0 for us).

Random note: while size>0 is equal to !isEmpty, the ::at() documentation
specifically ties the validity of index to size, so for clarity's sake I am
using size>0 rather than !isEmpty.

FIXED-IN: 2.2.1

File Changes

Modified 3 files
  •   src/sourceentry.cpp
  •   tests/sourceslisttest.cpp
  •   tests/data/test1.list
3 files changed in total