diff options
author | Wang Lei <leiw@apache.org> | 2012-08-14 07:22:33 +0000 |
---|---|---|
committer | Wang Lei <leiw@apache.org> | 2012-08-14 07:22:33 +0000 |
commit | 042c77a5b80590994864441b1aa50861b5146e88 (patch) | |
tree | 71a627c4d78780b1939ab21a16dee0588c338445 /sc/source/ui/dbgui | |
parent | 7e1023e9803c7ad9d5555e068ee59b010f173277 (diff) |
Fix i12666 autofilter works just on one sheet (only one auto-range per document)
Patch by: zhanglu.aoo
Submit by: Wang Lei
Notes
Notes:
prefer: 7df4c7feacf51c141a7beaa2a8404d932d7c2e86
Diffstat (limited to 'sc/source/ui/dbgui')
-rw-r--r-- | sc/source/ui/dbgui/dbnamdlg.cxx | 6 | ||||
-rw-r--r-- | sc/source/ui/dbgui/foptmgr.cxx | 2 |
2 files changed, 5 insertions, 3 deletions
diff --git a/sc/source/ui/dbgui/dbnamdlg.cxx b/sc/source/ui/dbgui/dbnamdlg.cxx index 4021b3784aba..cc843cc87688 100644 --- a/sc/source/ui/dbgui/dbnamdlg.cxx +++ b/sc/source/ui/dbgui/dbnamdlg.cxx @@ -266,7 +266,8 @@ void ScDbNameDlg::Init() && (rEnd.Col() == nCol2) && (rEnd.Row() == nRow2 ) ) { pDBData->GetName( theDbName ); - if ( theDbName != aStrNoName ) + //if ( theDbName != aStrNoName ) + if ( !pDBData->IsBuildin() ) aEdName.SetText( theDbName ); else aEdName.SetText( EMPTY_STRING ); @@ -378,7 +379,8 @@ void ScDbNameDlg::UpdateNames() if ( pDbData ) { pDbData->GetName( aString ); - if ( aString != aStrNoName ) + //if ( aString != aStrNoName ) + if ( !pDbData->IsBuildin() ) aEdName.InsertEntry( aString ); } } diff --git a/sc/source/ui/dbgui/foptmgr.cxx b/sc/source/ui/dbgui/foptmgr.cxx index 77522e32aeb5..0e7c546b8313 100644 --- a/sc/source/ui/dbgui/foptmgr.cxx +++ b/sc/source/ui/dbgui/foptmgr.cxx @@ -186,7 +186,7 @@ void ScFilterOptionsMgr::Init() rBtnHeader.Check( pDBData->HasHeader() ); pDBData->GetName( theDbName ); - if ( theDbName != rStrNoName ) + if ( !pDBData->IsBuildin() ) { rBtnHeader.Disable(); } |