explicit conversion from point/size to rectangle
This commit is contained in:
@@ -55,7 +55,7 @@ namespace nana
|
||||
|
||||
virtual void slider(window, graph_reference graph, const slider_t& s)
|
||||
{
|
||||
nana::rectangle r = graph.size();
|
||||
nana::rectangle r{ graph.size() };
|
||||
if(s.horizontal)
|
||||
{
|
||||
r.x = s.pos;
|
||||
@@ -390,7 +390,7 @@ namespace nana
|
||||
nana::rectangle _m_bar_area() const
|
||||
{
|
||||
auto sz = other_.graph->size();
|
||||
nana::rectangle r = sz;
|
||||
nana::rectangle r{ sz };
|
||||
if(style::horizontal == attr_.dir)
|
||||
{
|
||||
r.x = attr_.slider_scale / 2 - attr_.border;
|
||||
|
||||
Reference in New Issue
Block a user