Log nsfont_width failure.

This commit is contained in:
Michael Drake 2016-03-21 14:40:12 +00:00
parent 3c8e522c25
commit af4d72416b

View File

@ -27,6 +27,7 @@
#include <assert.h> #include <assert.h>
#include <windows.h> #include <windows.h>
#include "utils/log.h"
#include "utils/nsoption.h" #include "utils/nsoption.h"
#include "utils/utf8.h" #include "utils/utf8.h"
#include "desktop/font.h" #include "desktop/font.h"
@ -148,6 +149,7 @@ static bool nsfont_width(const plot_font_style_t *style,
ReleaseDC(NULL, hdc); ReleaseDC(NULL, hdc);
return true; return true;
} }
LOG("nsfont_width failed");
font = SelectObject(hdc, fontbak); font = SelectObject(hdc, fontbak);
DeleteObject(font); DeleteObject(font);
ReleaseDC(NULL, hdc); ReleaseDC(NULL, hdc);