Browse files

Fix detection of -abq and -baq in file names.

  • Loading branch information...
1 parent fb0b6a0 commit d34c174a69bbc4dacdfc34d09c72ddcc50a8d9e8 @marlam marlam committed Dec 14, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/input.cpp
View
4 src/input.cpp
@@ -300,13 +300,13 @@ void input::open(std::vector<decoder *> decoders,
}
else if (name.length() >= 4
&& (name.substr(name.length() - 4, 4) == "-tbh"
- || name.substr(name.length() - 3, 3) == "-abq"))
+ || name.substr(name.length() - 4, 4) == "-abq"))
{
_mode = top_bottom_half;
}
else if (name.length() >= 4
&& (name.substr(name.length() - 4, 4) == "-bth"
- || name.substr(name.length() - 3, 3) == "-baq"))
+ || name.substr(name.length() - 4, 4) == "-baq"))
{
_mode = top_bottom_half;
_swap_eyes = true;

0 comments on commit d34c174

Please sign in to comment.