This is the same as bug #281167

This can be fixed by replacing the assertion in TXScrollbar::set with

if (len_ > limit_) len_ = limit_;

such that TXScrollbar::set looks like this

void TXScrollbar::set(int limit_, int start_, int len_, bool vert)
{
  // This assertion fails under certain window managers.
  // assert(limit_ > 0 && len_ >= 0 && len_ <= limit_);

  if (len_ > limit_) len_ = limit_;
  if (start_ < 0) start_ = 0;
  if (start_ > limit_ - len_) start_ = limit_ - len_;

  if (limit[vert] != limit_ || start[vert] != start_ || len[vert] != len_) {
    limit[vert] = limit_;
    start[vert] = start_;
    len[vert] = len_;
    paint();
  }
}

I hope this patch is helpful.

best regards,

Brian Amberg

-- 
vncviewer crashes when maximizing viewwindow
https://bugs.launchpad.net/bugs/202123
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to