summaryrefslogtreecommitdiff
path: root/svx/source
diff options
context:
space:
mode:
authorFrank Schönheit <fs@openoffice.org>2001-08-08 08:25:12 +0000
committerFrank Schönheit <fs@openoffice.org>2001-08-08 08:25:12 +0000
commit09eddd300ca92fb96726134de92f31482b28bc25 (patch)
tree2efc5432bdb5e7d9af4f93090b6e3d69d2e7b493 /svx/source
parenta4047c37200f130b6f3f40cc5441a9a3470dab62 (diff)
#88849# OColumnTransferable: don't fake the to-be-dragged statement if the data source is no CommandType::COMMAND
Diffstat (limited to 'svx/source')
-rw-r--r--svx/source/fmcomp/dbaexchange.cxx15
1 files changed, 9 insertions, 6 deletions
diff --git a/svx/source/fmcomp/dbaexchange.cxx b/svx/source/fmcomp/dbaexchange.cxx
index 8d1bfd4c4967..173f662a418e 100644
--- a/svx/source/fmcomp/dbaexchange.cxx
+++ b/svx/source/fmcomp/dbaexchange.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: dbaexchange.cxx,v $
*
- * $Revision: 1.7 $
+ * $Revision: 1.8 $
*
- * last change: $Author: fs $ $Date: 2001-08-07 08:57:14 $
+ * last change: $Author: fs $ $Date: 2001-08-08 09:25:12 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -150,7 +150,7 @@ namespace svx
// If the data source is an SQL-statement and simple enough (means "select <field list> from <table> where ....")
// we are able to fake the drag information we are about to create.
- if (bTryToParse)
+ if (bTryToParse && (CommandType::COMMAND == nCommandType))
{
try
{
@@ -163,9 +163,9 @@ namespace svx
if (xComposer.is())
{
- ::rtl::OUString sActivaeCommand;
- _rxForm->getPropertyValue(FM_PROP_ACTIVECOMMAND) >>= sActivaeCommand;
- xComposer->setQuery(sActivaeCommand);
+ ::rtl::OUString sActiveCommand;
+ _rxForm->getPropertyValue(FM_PROP_ACTIVECOMMAND) >>= sActiveCommand;
+ xComposer->setQuery(sActiveCommand);
Reference< XTablesSupplier > xSupTab(xComposer, UNO_QUERY);
if(xSupTab.is())
{
@@ -680,6 +680,9 @@ namespace svx
/*************************************************************************
* history:
* $Log: not supported by cvs2svn $
+ * Revision 1.7 2001/08/07 08:57:14 fs
+ * #90660# +addDataToContainer
+ *
* Revision 1.6 2001/08/02 15:23:27 fs
* #90525# +ODataAccessObjectTransferable
*