summaryrefslogtreecommitdiff
path: root/dbaccess/source
diff options
context:
space:
mode:
authorOcke Janssen <oj@openoffice.org>2001-04-06 12:45:42 +0000
committerOcke Janssen <oj@openoffice.org>2001-04-06 12:45:42 +0000
commitaa933614087f3dbb9e039fb24dc04cfbb7fea4be (patch)
tree03ffde3af082bde2488ca7b16d59fb58205ff3d7 /dbaccess/source
parent5202507bf2b3b55b321e4ab8c2986dceec3961fa (diff)
use of dangling pointer
Diffstat (limited to 'dbaccess/source')
-rw-r--r--dbaccess/source/ui/querydesign/JoinTableView.cxx9
1 files changed, 6 insertions, 3 deletions
diff --git a/dbaccess/source/ui/querydesign/JoinTableView.cxx b/dbaccess/source/ui/querydesign/JoinTableView.cxx
index 5b9d4efc8c36..38391dbd0066 100644
--- a/dbaccess/source/ui/querydesign/JoinTableView.cxx
+++ b/dbaccess/source/ui/querydesign/JoinTableView.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: JoinTableView.cxx,v $
*
- * $Revision: 1.7 $
+ * $Revision: 1.8 $
*
- * last change: $Author: oj $ $Date: 2001-03-21 13:49:37 $
+ * last change: $Author: oj $ $Date: 2001-04-06 13:45:42 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -395,7 +395,9 @@ BOOL OJoinTableView::RemoveConnection( OTableConnection* pConn )
OTableWindow* OJoinTableView::GetWindow( const String& rName )
{
DBG_CHKTHIS(OJoinTableView,NULL);
- return m_aTableMap[rName];
+ OTableWindowMapIterator aIter = m_aTableMap.find(rName);
+
+ return aIter == m_aTableMap.end() ? NULL : aIter->second;
}
// -----------------------------------------------------------------------------
OTableWindowData* OJoinTableView::CreateImpl(const ::rtl::OUString& _rComposedName,
@@ -1131,6 +1133,7 @@ void OJoinTableView::ClearAll()
delete (*aIter);
}
m_vTableConnection.clear();
+ m_pLastFocusTabWin = NULL;
// scroll to the upper left
Scroll(-GetScrollOffset().X(), TRUE, TRUE);