Merge branch 'master' of https://github.com/prusa3d/PrusaSlicer
This commit is contained in:
commit
537c3714f2
2 changed files with 8 additions and 3 deletions
|
@ -757,8 +757,8 @@ public:
|
||||||
|
|
||||||
template<class T> inline const Pillar& pillar(T id) const {
|
template<class T> inline const Pillar& pillar(T id) const {
|
||||||
static_assert(std::is_integral<T>::value, "Invalid index type");
|
static_assert(std::is_integral<T>::value, "Invalid index type");
|
||||||
assert(id >= 0 && id < m_pillars.size() &&
|
assert(id >= 0 && size_t(id) < m_pillars.size() &&
|
||||||
id < std::numeric_limits<size_t>::max());
|
size_t(id) < std::numeric_limits<size_t>::max());
|
||||||
return m_pillars[size_t(id)];
|
return m_pillars[size_t(id)];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -297,13 +297,18 @@ void ObjectList::set_tooltip_for_item(const wxPoint& pt)
|
||||||
wxDataViewItem item;
|
wxDataViewItem item;
|
||||||
wxDataViewColumn* col;
|
wxDataViewColumn* col;
|
||||||
HitTest(pt, item, col);
|
HitTest(pt, item, col);
|
||||||
if (!item) return;
|
|
||||||
|
|
||||||
/* GetMainWindow() return window, associated with wxDataViewCtrl.
|
/* GetMainWindow() return window, associated with wxDataViewCtrl.
|
||||||
* And for this window we should to set tooltips.
|
* And for this window we should to set tooltips.
|
||||||
* Just this->SetToolTip(tooltip) => has no effect.
|
* Just this->SetToolTip(tooltip) => has no effect.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
if (!item)
|
||||||
|
{
|
||||||
|
GetMainWindow()->SetToolTip(""); // hide tooltip
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (col->GetTitle() == " " && GetSelectedItemsCount()<2)
|
if (col->GetTitle() == " " && GetSelectedItemsCount()<2)
|
||||||
GetMainWindow()->SetToolTip(_(L("Right button click the icon to change the object settings")));
|
GetMainWindow()->SetToolTip(_(L("Right button click the icon to change the object settings")));
|
||||||
else if (col->GetTitle() == _("Name"))
|
else if (col->GetTitle() == _("Name"))
|
||||||
|
|
Loading…
Reference in a new issue