Skip to content

ImGuiIntegration: Fix assertion when move assigning empty context#63

Merged
mosra merged 1 commit into
mosra:masterfrom
Squareys:fix-imgui-context-move-assign
Jan 5, 2020
Merged

ImGuiIntegration: Fix assertion when move assigning empty context#63
mosra merged 1 commit into
mosra:masterfrom
Squareys:fix-imgui-context-move-assign

Conversation

@Squareys
Copy link
Copy Markdown
Contributor

@Squareys Squareys commented Jan 5, 2020

@mosra As discussed via gitter, here's the follow-up fix for #62 .

Best,
Jonathan.

@mosra mosra added this to the 2020.0a milestone Jan 5, 2020
Comment thread src/Magnum/ImGuiIntegration/Test/ContextGLTest.cpp
When _context is nullptr in `this` or `other` the current context is unset
which fails in ImGui::GetIO().

Signed-off-by: Squareys <squareys@googlemail.com>
@Squareys Squareys force-pushed the fix-imgui-context-move-assign branch from d0ec813 to e17f7de Compare January 5, 2020 18:35
@codecov-io
Copy link
Copy Markdown

codecov-io commented Jan 5, 2020

Codecov Report

Merging #63 into master will decrease coverage by 18.88%.
The diff coverage is 0%.

Impacted file tree graph

@@             Coverage Diff             @@
##           master      #63       +/-   ##
===========================================
- Coverage   74.45%   55.56%   -18.89%     
===========================================
  Files          21       19        -2     
  Lines         912      844       -68     
===========================================
- Hits          679      469      -210     
- Misses        233      375      +142
Impacted Files Coverage Δ
src/Magnum/ImGuiIntegration/Context.cpp 2.71% <0%> (-81.44%) ⬇️
src/Magnum/ImGuiIntegration/Context.h 100% <0%> (ø) ⬆️
src/Magnum/ImGuiIntegration/Widgets.h
src/Magnum/ImGuiIntegration/Context.hpp

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 31c9235...e17f7de. Read the comment docs.

@mosra mosra merged commit e17f7de into mosra:master Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Development

Successfully merging this pull request may close these issues.

3 participants