vlc/vlc-2.2 | branch: master | Jean-Baptiste Kempf <[email protected]> | Sun 
Jan 25 19:34:14 2015 +0100| [015e5d2d556c234d76bcc73ca725c34b4d4ac442] | 
committer: Jean-Baptiste Kempf

Qt: don't allow negative screen-numbers

Close #13643

(cherry picked from commit cd112b85939b04f50983b1f2a705c448eb79b527)
Signed-off-by: Jean-Baptiste Kempf <[email protected]>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.2.git/?a=commit;h=015e5d2d556c234d76bcc73ca725c34b4d4ac442
---

 modules/gui/qt4/components/controller.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/gui/qt4/components/controller.cpp 
b/modules/gui/qt4/components/controller.cpp
index a006ff0..6624509 100644
--- a/modules/gui/qt4/components/controller.cpp
+++ b/modules/gui/qt4/components/controller.cpp
@@ -953,7 +953,7 @@ void FullscreenControllerWidget::toggleFullwidth()
 
 int FullscreenControllerWidget::targetScreen()
 {
-    if( i_screennumber == -1 || i_screennumber > 
QApplication::desktop()->numScreens() )
+    if( i_screennumber < 0 || i_screennumber > 
QApplication::desktop()->numScreens() )
         return QApplication::desktop()->screenNumber( p_intf->p_sys->p_mi );
     return i_screennumber;
 }

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to