On pc Debian x86-64 with master sources updated today, I could reproduce
this.

After a gdb session, it seems the problem is here:
    224         if ( _pType->aCreateParams.isEmpty() )
    225         {
    226             SetPrecision(_pType->nPrecision);
    227             SetScale(_pType->nMinimumScale);
    228         }

http://opengrok.libreoffice.org/xref/core/dbaccess/source/ui/tabledesign/FieldDescriptions.cxx#224

Indeed, the types which have the problem have _pType->aCreateParams not
empty and so don't enter the if block.

NUMBER => "PRECISION,SCALE"
VARCHAR => "LENGTH"
etc.

Lionel: What's the purpose of this if block? Could it be removed?

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to libreoffice in Ubuntu.
https://bugs.launchpad.net/bugs/986880

Title:
  [Upstream] field length inherited

Status in LibreOffice Productivity Suite:
  Confirmed
Status in “libreoffice” package in Ubuntu:
  Confirmed

Bug description:
  When I define a table field in LbreOfficeBase I notice that the
  following field types NUMERIC, DECIMAL, FLOAT, VARCHAR,
  VARCHAR_IGNORECASE, inherit the latest set length, that is: when I add
  a field it is set to VARCHAR (100), if I change it to FLOAT its length
  is automatically set to 17, if I come back to VARCHAR, the field
  length is not set back to 100, but still remains 17.

  ProblemType: Bug
  DistroRelease: Ubuntu 12.04
  Package: libreoffice-core 1:3.5.2-2ubuntu1
  ProcVersionSignature: Ubuntu 3.2.0-23.36-generic-pae 3.2.14
  Uname: Linux 3.2.0-23-generic-pae i686
  ApportVersion: 2.0.1-0ubuntu5
  Architecture: i386
  CasperVersion: 1.315
  Date: Sun Apr 22 13:13:28 2012
  ExecutablePath: /usr/lib/libreoffice/program/soffice.bin
  LiveMediaBuild: Edubuntu 12.04 LTS "Precise Pangolin" - Beta i386 (20120420)
  ProcEnviron:
   PATH=(custom, no user)
   LANG=it_IT.UTF-8
   SHELL=/bin/bash
  SourcePackage: libreoffice
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/df-libreoffice/+bug/986880/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to