(svn r13021) -Codechange: free data_b for other uses when it is not used to store a second tile to skip to (in news messages). Patch by cirdan.

This commit is contained in:
rubidium
2008-05-08 22:53:49 +00:00
parent bc514a7f51
commit 2ba05f8987
3 changed files with 8 additions and 7 deletions

View File

@@ -209,11 +209,11 @@ static void NewsWindowProc(Window *w, WindowEvent *e)
} else if (ni->flags & NF_TILE) {
if (_ctrl_pressed) {
ShowExtraViewPortWindow(ni->data_a);
if (ni->data_b != 0) {
if (ni->flags & NF_TILE2) {
ShowExtraViewPortWindow(ni->data_b);
}
} else {
if (!ScrollMainWindowToTile(ni->data_a) && ni->data_b != 0) {
if (!ScrollMainWindowToTile(ni->data_a) && ni->flags & NF_TILE2) {
ScrollMainWindowToTile(ni->data_b);
}
}