Skip to content

Commit 9e16dc7

Browse files
committed
font maps: ensure Append mode if no mode character is given
1 parent 7981540 commit 9e16dc7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/FontMap.cpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -208,9 +208,11 @@ bool FontMap::read (const string &fname_seq, bool warn) {
208208
bool found = false;
209209
string::size_type left=0;
210210
while (left < fname_seq.length()) {
211-
const char modechar = fname_seq[left];
211+
char modechar = fname_seq[left];
212212
if (strchr("+-=", modechar))
213213
left++;
214+
else
215+
modechar = '+';
214216
string fname;
215217
auto right = fname_seq.find(',', left);
216218
if (right != string::npos)

0 commit comments

Comments
 (0)