Merge branch 'master' of https://github.com/ggtucker/imgui into ggtucker-master

# Conflicts:
#	imgui.cpp
#	imgui.h
This commit is contained in:
omar
2017-08-20 18:22:34 +08:00
5 changed files with 198 additions and 89 deletions

View File

@ -1213,8 +1213,8 @@ ImFont* ImFontAtlas::AddFont(const ImFontConfig* font_cfg)
ConfigData.push_back(*font_cfg);
ImFontConfig& new_font_cfg = ConfigData.back();
if (!new_font_cfg.DstFont)
new_font_cfg.DstFont = Fonts.back();
if (!new_font_cfg.DstFont)
new_font_cfg.DstFont = Fonts.back();
if (!new_font_cfg.FontDataOwnedByAtlas)
{
new_font_cfg.FontData = ImGui::MemAlloc(new_font_cfg.FontDataSize);