--- taxonomy_theme_paths.inc.orig	2008-03-13 18:03:06.000000000 +0100
+++ taxonomy_theme_paths.inc	2008-03-13 17:59:31.000000000 +0100
@@ -6,8 +6,15 @@
  * (assign theme to Drupal paths and path aliases (incl. i18n support))
  */
 function _taxonomy_theme_select_paths(&$custom_theme, $uri) {
-  $offset  = (variable_get('clean_url', 0) ? 0 : 3) + strlen(base_path());
-  $alias_uri = substr(request_uri(), $offset);
+  // If we are trying to set a view's theme, we need to
+  // shift arguments from the uri
+  if (variable_get('taxonomy_theme_viewspages', 0) && views_get_view(arg(0))) {
+     $alias_uri = arg(0);
+  }
+  else {
+    $offset  = (variable_get('clean_url', 0) ? 0 : 3) + strlen(base_path());
+    $alias_uri = substr(request_uri(), $offset);
+  }
   if (module_exists('i18n')) {
     i18n_get_lang_prefix($alias_uri, true);
   }
