refine code
fix bug that listbox may throw std::runtime when the modal is enabled fix bug that textbox attachs a wrong event angent
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
|
||||
#include <nana/gui/widgets/slider.hpp>
|
||||
#include <nana/paint/pixel_buffer.hpp>
|
||||
#include <cstring> //memcpy
|
||||
|
||||
namespace nana
|
||||
@@ -645,7 +646,6 @@ namespace nana
|
||||
{
|
||||
adorn.bound.x = static_cast<int>(attr_.adorn_pos + attr_.slider.border_weight + bar.area.y);
|
||||
adorn.bound.y = static_cast<int>(graph.height()) - static_cast<int>(attr_.slider.border_weight + bar.area.y);
|
||||
//adorn.bound.x =
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user