Date: prev next · Thread: first prev next last
2012 Archives by date, by thread · List index


Hi,

On xmloff/source/draw/shapeexport.cxx, line 711 seems quite weird:
    704             XMLTokenEnum eDisplayToken = XML_TOKEN_INVALID;
    705             const unsigned short nDisplay = (bVisible ? 2 : 0) |
(bPrintable ? 1 : 0);
    706             switch( nDisplay )
    707             {
    708             case 0: eDisplayToken = XML_NONE; break;
    709             case 1: eDisplayToken = XML_PRINTER; break;
    710             case 2: eDisplayToken = XML_SCREEN; break;
    711             // case 3: eDisplayToken = XML_ALWAYS break; this is the
default
    712             }

Why shouldn't we uncomment case 3?
"nDisplay" could be equalled to "3" and "eDisplayToken"  is 
"XML_TOKEN_INVALID" by default

An idea?

Julien



--
View this message in context: 
http://nabble.documentfoundation.org/About-shapeexport-cxx-in-xmloff-tp4016286.html
Sent from the Dev mailing list archive at Nabble.com.

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.