Index: panels.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/panels/panels.module,v
retrieving revision 1.10.4.106
diff -u -r1.10.4.106 panels.module
--- panels.module	30 May 2008 00:23:09 -0000	1.10.4.106
+++ panels.module	2 Jun 2008 23:40:23 -0000
@@ -696,6 +696,14 @@
     $displays[$pane->did]->panels[$pane->panel][] = $pane->pid;
     $displays[$pane->did]->content[$pane->pid] = $pane;
   }
+  //Old panels may not have shown property, so enable by default when loading.
+  foreach ($displays as $did => $display) {
+    foreach ($display->content as $pid => $pane) {
+      if (!isset($pane->shown)) {
+        $displays[$did]->content[$pid]->shown = TRUE;
+      }
+    }
+  }
   return $displays;
 }
 
@@ -782,7 +790,7 @@
       // doin it this way for readability
       $f = 'pid, did, panel, type, subtype, configuration, cache, shown, access, visibility, position';
       $q = "%d, %d, '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', %d";
-      $v = array($pane->pid, $display->did, $pane->panel, $pane->type, $pane->subtype, serialize($pane->configuration), serialize($pane->cache), $pane->shown, $access, $visibility, $pane->position);
+      $v = array($pane->pid, $display->did, $pane->panel, $pane->type, $pane->subtype, serialize($pane->configuration), serialize($pane->cache), !isset($pane->shown) ? TRUE : $pane->shown, $access, $visibility, $pane->position);
       db_query("INSERT INTO {panels_pane} ($f) VALUES ($q)", $v);
       // and put it back so our pids and positions can be used
       $display->content[$pane->pid] = $pane;
@@ -859,8 +867,12 @@
     $id = 'new-' . ++$counter;
     $output .= $prefix . '$pane = new stdClass()'  . ";\n";
     $output .= $prefix . '  $pane->pid = \'' . $id . '\'' . ";\n";
-    $fields = array('panel', 'type', 'subtype', 'access', 'configuration');
+    $fields = array('panel', 'type', 'subtype', 'access', 'configuration', 'shown', 'visibility');
     foreach ($fields as $field) {
+      //Old panels may not have shown property, so enable by default when re-exporting.
+      if ($field == 'shown' && !isset($pane->shown)) {
+        $pane->shown = TRUE;
+      }
       $output .= $prefix . '  $pane->' . $field . ' = ' . panels_var_export($pane->$field, "$prefix  ") . ";\n";
     }
     $output .= $prefix . '$display->content[\'' . $id . '\'] = $pane' . ";\n";
@@ -999,7 +1011,8 @@
   foreach ($display->content as $pid => $pane) {
     // TODO Really ought to design a method for creating a quick-access set of content_type (and other plugin) data to help optimize render performance
     // If the user can't see this pane, do not render it.
-    if (!$pane->shown || !panels_pane_access($pane, $display)) {
+    //If pane->shown isn't set, show the pane by default.
+    if ((isset($pane->shown) && !$pane->shown) || !panels_pane_access($pane, $display)) {
       continue;
     }
 
Index: includes/display_edit.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/panels/includes/Attic/display_edit.inc,v
retrieving revision 1.1.2.50
diff -u -r1.1.2.50 display_edit.inc
--- includes/display_edit.inc	2 Jun 2008 16:39:07 -0000	1.1.2.50
+++ includes/display_edit.inc	2 Jun 2008 23:40:23 -0000
@@ -1128,7 +1128,7 @@
   $ajax_vars->region = $cache->content_config[$pane->pid]['panel_id'];
 
   $cache->display->panels[$cache->content_config[$pane->pid]['panel_id']][] = $pane->pid;
-  $cache->display->content[$pane->pid]->shown = 1;
+  $cache->display->content[$pane->pid]->shown = TRUE;
 
   // we need to fake the buttons a little.
   // new panes are shown by default
