[PLD 3.x (Th): Bug 66] writer from openoffice 2.3 shows empty window
btsadmin at pld-linux.org
btsadmin at pld-linux.org
Mon Mar 3 18:59:21 CET 2008
http://bugs.pld-linux.org/show_bug.cgi?id=66
--- Comment #6 from Arkadiusz Miskiewicz <arekm at pld-linux.org> 2008-03-03 18:59:21 ---
The problem looks to be in source/deployment/dp_persmap.cxx file.
PersistentMap::PersistentMap( OUString const & url_, bool readOnly )
: m_db( 0, 0 )
{
try {
OUString url( expandUnoRcUrl(url_) );
if ( File::getSystemPathFromFileURL( url, m_sysPath ) != File::E_None )
{
LOOK HERE ----> here url is "/" and m_sysPath is ""
OSL_ASSERT( false );
}
OString cstr_sysPath(
OUStringToOString( m_sysPath, osl_getThreadTextEncoding() ) );
char const * pcstr_sysPath = cstr_sysPath.getStr();
u_int32_t flags = DB_CREATE;
if (readOnly) {
flags = DB_RDONLY|DB_LOCKDOWN;
if (! create_ucb_content(
0, url,
Reference<com::sun::star::ucb::XCommandEnvironment>(),
false /* no throw */ )) {
// ignore non-existent file in read-only mode: simulate empty
db
pcstr_sysPath = 0;
flags = DB_CREATE;
}
}
LOOK HERE ----------> and here pcstr_sysPath is ""
int err = m_db.open(
// xxx todo: DB_THREAD, DB_DBT_MALLOC currently not used
0, pcstr_sysPath, 0, DB_HASH, flags/* | DB_THREAD*/, 0664 /* fs
mode */ );
printf("GO2\n");
if (err != 0)
throw_rtexc(err);
}
--
Configure bugmail: http://bugs.pld-linux.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are watching all bug changes.
More information about the pld-bugs
mailing list