Commit 80223150 authored by Albert Astals Cid's avatar Albert Astals Cid
Browse files

Wonder how that slipped here

parent 82638bab
...@@ -972,8 +972,6 @@ FcPattern *buildFcPattern(GfxFont *font) ...@@ -972,8 +972,6 @@ FcPattern *buildFcPattern(GfxFont *font)
strcpy(family, name); strcpy(family, name);
int pos = (modifiers - name); int pos = (modifiers - name);
family[pos] = '\0'; family[pos] = '\0';
pos--;
family[pos] = '\0';
deleteFamily = true; deleteFamily = true;
} }
else { else {
...@@ -1071,6 +1069,7 @@ DisplayFontParam *GlobalParams::getDisplayFont(GfxFont *font) { ...@@ -1071,6 +1069,7 @@ DisplayFontParam *GlobalParams::getDisplayFont(GfxFont *font) {
GooString *fontName = font->getName(); GooString *fontName = font->getName();
if (!fontName) return NULL; if (!fontName) return NULL;
printf("%s\n", fontName->getCString());
lockGlobalParams; lockGlobalParams;
dfp = (DisplayFontParam *)displayFonts->lookup(fontName); dfp = (DisplayFontParam *)displayFonts->lookup(fontName);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment