Changeset 1ab6e7f in subsurface


Ignore:
Timestamp:
Jan 14, 2017, 9:09:58 AM (4 months ago)
Author:
Dirk Hohndel <dirk@…>
Branches:
master
Children:
cc8ee5a
Parents:
dd96f051
Message:

Prevent crash on Mac when typing comma in GPS coordinates field

Our attempt to skip any white space after the comma causes an ASSERT (strangely
only on Macs).

This closes #158

Signed-off-by: Dirk Hohndel <dirk@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • core/qthelper.cpp

    r9357341 r1ab6e7f  
    188188                        // next coordinate coming up
    189189                        // eat the ',' and any subsequent white space
    190                         while (txt[++pos].isSpace())
     190                        while (++pos < txt.size() && txt[pos].isSpace())
    191191                                /* nothing */ ;
    192192                        break;
Note: See TracChangeset for help on using the changeset viewer.