# HG changeset patch # User Tomasz Mon # Date 1195216132 -3600 # Node ID 8be86c0b040e21e71146bfe0649643ff009a9687 # Parent 37963a32f627c2505187f73d8babbb1b085e2a11 fix possible glitch which could be triggered by switching skin while textbox was scrolling diff -r 37963a32f627 -r 8be86c0b040e src/audacious/ui_skinned_textbox.c --- a/src/audacious/ui_skinned_textbox.c Fri Nov 16 04:56:04 2007 -0600 +++ b/src/audacious/ui_skinned_textbox.c Fri Nov 16 13:28:52 2007 +0100 @@ -591,10 +591,12 @@ if (priv->offset >= (priv->pixmap_width - textbox->width)) { priv->scroll_back = TRUE; priv->scroll_dummy = 0; + priv->offset = priv->pixmap_width - textbox->width; } if (priv->offset <= 0) { priv->scroll_back = FALSE; priv->scroll_dummy = 0; + priv->offset = 0; } } else { // oneway scroll