void
StaticSwitchScreen::getWindowPosition (unsigned int index,
int *x,
int *y)
{
int row, column;
if (index >= windows.size ())
return;
column = (int)index % xCount;
row = (int)index / xCount;
*x = column * previewWidth + (column + 1) * previewBorder;
*x += getRowXOffset (row);
*y = row * previewHeight + (row + 1) * previewBorder;
}
That's two places for divbyzero in a row; both if xCount is zero. It looks like
it's initialized to 0 and then has lots of opportunity to be zero later on.
However, compiling the thing is apparently not as easy as typing `cmake .`.
Crosses thumbs that I get away with not fixing this.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/889250
Title:
compiz crashes when using static switcher
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/compiz-plugins-main/+bug/889250/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs