[dba-issues] [Issue 116187] RPT: Page margin setting ignored

2011-01-14 Thread lmamane
To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=116187


User lmamane changed the following:

What|Old value |New value

  Status|CLOSED|UNCONFIRMED

Platform|All   |Opteron/x86_64

  Resolution|WORKSFORME|





--- Additional comments from lmam...@openoffice.org Sat Jan 15 04:32:00 
+ 2011 ---
r4zoli, I bet you tried on a 32-bit architecture machine. Because I nailed down
this bug, and it only happens on 64-bit architectures (and not Microsoft 
Windows).

The problem is in this line in ReportController.cxx:
   
xProp-setPropertyValue(PROPERTY_LEFTMARGIN,uno::makeAny((sal_Int32)static_castconst
SvxLRSpaceItem*(pItem)-GetLeft()));

SvxLRSpaceItem*-GetLeft() returns a C/C++ long (from lrspitem.hxx):

longnLeftMargin;// nLeft oder der neg. Erstzeileneinzug
(...)
inline long GetLeft()  const { return nLeftMargin; }

On a 32-bit machine, this is a 32-bit value, so a long in uno terms, and all
goes well.

But on a 64-bit machine, with a debug build, you get on stderr:

Error: caught an exception!
in function:void rptui::OReportController::openPageDialog(const
com::sun::star::uno::Referencecom::sun::star::report::XSection)
type: com.sun.star.lang.IllegalArgumentException
message: The given value cannot be converted to the required property type.
(property name LeftMargin, found value type hyper, required property type
long)

That's because a C/C++ long is 64 bits, thus a hyper in uno terms...
setPropertyValue refuses to downgrade the hyper (64 bits) to a long (32 bits),
even when the actual value being presented would fit. Thus exception is raised,
the whole try block is broken, and everything that is below that line (like
saving the user-set top/bottom margin values) is not done.

The same for Right margin. You won't get this bug in Microsoft Windows, because
there, even in a 64-bit environment, a long is still 32 bits.


By contrast, in the lines just below:

xProp-setPropertyValue(PROPERTY_TOPMARGIN,uno::makeAny(static_castconst
SvxULSpaceItem*(pItem)-GetUpper()));
xProp-setPropertyValue(PROPERTY_BOTTOMMARGIN,uno::makeAny(static_castconst
SvxULSpaceItem*(pItem)-GetLower()));


GetUpper and GetLower are C/C++ USHORT, and hence fit in a uno long without
problem. As they are expressed in hundreths of millimeters, this also tells us
they wrap around at 65.535 cm (well, as the UI rounds at tenths of millimeters,
let's say 65.53cm)... In other words, one can't set margins bigger than that.
(One can set paper size up to 3m*3m.)


The attached patch closes the hole to fix the user-visible bug in an immediate
way, but possibly the best way to fix this is to change SvxLRSpaceItem to not
use C/C++ long, but a type of fixed length, or fix setPropertyValue to accept
values that come in a type that is too big, but fit in the type that it wants,
or possibly something else altogether.


-
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

-
To unsubscribe, e-mail: issues-unsubscr...@dba.openoffice.org
For additional commands, e-mail: issues-h...@dba.openoffice.org


-
To unsubscribe, e-mail: allbugs-unsubscr...@openoffice.org
For additional commands, e-mail: allbugs-h...@openoffice.org



[dba-issues] [Issue 116187] RPT: Page margin setting ignored

2011-01-14 Thread lmamane
To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=116187


User lmamane changed the following:

What|Old value |New value

 Attachment is patch|  |Created an attachment (id=
|  |75567)
stop-gap patch






--- Additional comments from lmam...@openoffice.org Sat Jan 15 04:32:50 
+ 2011 ---
Created an attachment (id=75567)
stop-gap patch


-
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

-
To unsubscribe, e-mail: issues-unsubscr...@dba.openoffice.org
For additional commands, e-mail: issues-h...@dba.openoffice.org


-
To unsubscribe, e-mail: allbugs-unsubscr...@openoffice.org
For additional commands, e-mail: allbugs-h...@openoffice.org



[dba-issues] [Issue 116187] RPT: left/right page margin setting ignored on Unix 64 bit

2011-01-14 Thread lmamane
To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=116187


User lmamane changed the following:

What|Old value |New value

 Summary|RPT: Page margin setting i|RPT: left/right page margi
|gnored|n setting ignored on Unix 
|  |64 bit





-
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

-
To unsubscribe, e-mail: issues-unsubscr...@dba.openoffice.org
For additional commands, e-mail: issues-h...@dba.openoffice.org


-
To unsubscribe, e-mail: allbugs-unsubscr...@openoffice.org
For additional commands, e-mail: allbugs-h...@openoffice.org



[dba-issues] [Issue 116187] Page margin setting ignor ed

2010-12-20 Thread lmamane
To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=116187
 Issue #|116187
 Summary|Page margin setting ignored
   Component|Database access
 Version|OOO320m19
Platform|All
 URL|
  OS/Version|Linux
  Status|UNCONFIRMED
   Status whiteboard|
Keywords|
  Resolution|
  Issue type|DEFECT
Priority|P3
Subcomponent|SRB
 Assigned to|dbaneedsconfirm
 Reported by|lmamane





--- Additional comments from lmam...@openoffice.org Mon Dec 20 16:04:38 
+ 2010 ---
I'm using Report Builder 1.2.1, from the Debian package, but there is no RPT 
1.2.1 in the 
version field of the issue tracker.

When editing a report, there is a Format / Page menu which opens a Page 
Setup dialog box. In 
that dialog box, there is a Margins section, with all margins at 2cm by 
default. The margins can 
be changed there, but if one changes them, click OK and then open the dialog 
box again, they are 
back at the default value of 2cm. Also, if one executes the report, the 
margins actually used are 
still 2cm.

Modifying the styles.xml file embedded in the .odb directly, changing
style:page-layout-properties fo:margin-top=2cm fo:margin-bottom=2cm 
fo:margin-
left=2cm fo:margin-right=2cm /
to
style:page-layout-properties fo:margin-top=1cm fo:margin-bottom=1cm 
fo:margin-
left=1cm fo:margin-right=1cm /
works and gives 1cm margins.

-
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

-
To unsubscribe, e-mail: issues-unsubscr...@dba.openoffice.org
For additional commands, e-mail: issues-h...@dba.openoffice.org


-
To unsubscribe, e-mail: allbugs-unsubscr...@openoffice.org
For additional commands, e-mail: allbugs-h...@openoffice.org



[dba-issues] [Issue 103133] embed JDBC driver in ODB files

2010-12-20 Thread lmamane
To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=103133


User lmamane changed the following:

What|Old value |New value

  CC|''|'lmamane'





-
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

-
To unsubscribe, e-mail: issues-unsubscr...@dba.openoffice.org
For additional commands, e-mail: issues-h...@dba.openoffice.org


-
To unsubscribe, e-mail: allbugs-unsubscr...@openoffice.org
For additional commands, e-mail: allbugs-h...@openoffice.org



[dba-issues] [Issue 60847] Stored Proc Support

2010-12-20 Thread lmamane
To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=60847


User lmamane changed the following:

What|Old value |New value

  CC|''|'lmamane'





-
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

-
To unsubscribe, e-mail: issues-unsubscr...@dba.openoffice.org
For additional commands, e-mail: issues-h...@dba.openoffice.org


-
To unsubscribe, e-mail: allbugs-unsubscr...@openoffice.org
For additional commands, e-mail: allbugs-h...@openoffice.org



[dba-issues] [Issue 116187] RPT: Page margin setting ignored

2010-12-20 Thread lmamane
To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=116187


User lmamane changed the following:

What|Old value |New value

 Summary|Page margin setting ignore|RPT: Page margin setting i
|d |gnored





--- Additional comments from lmam...@openoffice.org Mon Dec 20 16:26:14 
+ 2010 ---
If I change (directly in the file) fo:margin-bottom to 0.5cm, but *not* the 
fo:margin-top, then the GUI 
interface lets me change *both* the top and bottom margin successfully, but 
still not the left/right 
margin.

Even further testing shows that if I change _only_ the top/bottom margins in 
the GUI, then that setting 
sticks. But if I change the left or right margin, then the new setting of *all* 
margins is lost, even the 
setting of top/bottom.

-
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

-
To unsubscribe, e-mail: issues-unsubscr...@dba.openoffice.org
For additional commands, e-mail: issues-h...@dba.openoffice.org


-
To unsubscribe, e-mail: allbugs-unsubscr...@openoffice.org
For additional commands, e-mail: allbugs-h...@openoffice.org



[dba-issues] [Issue 107646] MS Access/MDB/Jet: autose lect same workgroup as MS Access

2009-12-13 Thread lmamane
To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=107646
 Issue #|107646
 Summary|MS Access/MDB/Jet: autoselect same workgroup as MS Acc
|ess
   Component|Database access
 Version|OOO310m11
Platform|PC
 URL|
  OS/Version|Windows, all
  Status|UNCONFIRMED
   Status whiteboard|
Keywords|
  Resolution|
  Issue type|ENHANCEMENT
Priority|P3
Subcomponent|none
 Assigned to|dbaneedsconfirm
 Reported by|lmamane





--- Additional comments from lmam...@openoffice.org Sun Dec 13 08:25:35 
+ 2009 ---
When connecting through MS Jet to a database (e.g. through OLE DB) supporting
user-level security (e.g. MS Access 97/2003 MDB format), the setting for which
workgroup to use is left blank, but one is given the opportunity to give a
username / password. Username/password is meaningless without the workgroup
definition file. The workgroup definition file setting is hidden in the
advanced options, as a string setting (one does not get a filechooser to set 
it).

This also keeps File/Open of a .mdb file to just work in the situation where
the workgroup file is not the default system one.

IMHO, the best resolution would be:
Automagically set the workgroup setting to the same value that MS Access uses
(when it is installed on the machine, obviously). E.g. Query the MS Access
setting from the MS Windows registry and use that.

Failing that, promote that setting to the same tab as the username/password, and
have a browse button that opens a filechooser for that setting.

-
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

-
To unsubscribe, e-mail: issues-unsubscr...@dba.openoffice.org
For additional commands, e-mail: issues-h...@dba.openoffice.org


-
To unsubscribe, e-mail: allbugs-unsubscr...@openoffice.org
For additional commands, e-mail: allbugs-h...@openoffice.org



[sw-issues] [Issue 86811] WW8: arabic numbers instea d of decimal numbers

2008-04-04 Thread lmamane
To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=86811


User lmamane changed the following:

What|Old value |New value

  CC|'adebr,hdu,kaplan,mba,rene|'adebr,hdu,kaplan,lmamane,
|,st,yhager'   |mba,rene,st,yhager'





-
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]