--- nice_menus.module	2010-09-11 01:19:46.229837192 -0500
+++ nice_menus.module	2010-09-11 01:13:54.995129000 -0500
@@ -434,7 +434,7 @@ function theme_nice_menus_build($menu, $
         // Keep passing children into the function 'til we get them all.
         $children = theme('nice_menus_build', $menu_item['below'], $depth, $trail);
         // Set the class to parent only of children are displayed.
-        $parent_class = $children ? 'menuparent ' : '';
+        $parent_class = ($children && ($menu_item['link']['depth'] <= $depth || $depth == -1)) ? 'menuparent ' : '';
         $output .= '<li class="menu-' . $mlid . ' ' . $parent_class . $class . $first_class . $oddeven_class . $last_class .'">'. theme('menu_item_link', $menu_item['link']);
         // Check our depth parameters.
         if ($menu_item['link']['depth'] <= $depth || $depth == -1) {
