Merge pull request #641 from Predelnik/pr

Make ctx->begin 0 if ctx->end became 0.
pull/342/merge
Micha Mettke 2018-03-05 09:36:36 -08:00 committed by GitHub
commit 905b41f640
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -18789,6 +18789,8 @@ nk_clear(struct nk_context *ctx)
iter == ctx->active) {
ctx->active = iter->prev;
ctx->end = iter->prev;
if (!ctx->end)
ctx->begin = 0;
if (ctx->active)
ctx->active->flags &= ~(unsigned)NK_WINDOW_ROM;
}