Running the following simple demo and dragging the splitter bar to left (or right) close to the edge cause a crash due to the dock caption text renderer function

#include <nana/gui.hpp>
#include <nana/gui/place.hpp>
#include <nana/gui/widgets/button.hpp>

using namespace nana;

int main()
{
    form fm{ API::make_center(600, 400) };

    place p(fm);
    p.div("margin=10 dock <A><B>");

    p.dock<button>("A", "", std::string("Button1"));
    p.dock<button>("B", "", std::string("Button2"));

    fm.collocate();
    fm.show();
    nana::exec();
}
Running the following simple demo and dragging the splitter bar to left (or right) close to the edge cause a crash due to the dock caption text renderer function ```` #include <nana/gui.hpp> #include <nana/gui/place.hpp> #include <nana/gui/widgets/button.hpp> using namespace nana; int main() { form fm{ API::make_center(600, 400) }; place p(fm); p.div("margin=10 dock <A><B>"); p.dock<button>("A", "", std::string("Button1")); p.dock<button>("B", "", std::string("Button2")); fm.collocate(); fm.show(); nana::exec(); } ````

Just sent a PR that fix the above issue.

Just sent a PR that fix the above issue.
18
views
1
replies
1
followers
live preview
enter atleast 10 characters
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft