View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0017332 | Scribus | General | public | 2024-12-09 20:56 | 2024-12-10 20:27 |
Reporter | nitramr | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | always |
Status | new | Resolution | open | ||
Platform | Desktop PC | OS | Ubuntu | OS Version | 24.10 64-bit |
Product Version | 1.6.2 | ||||
Target Version | 1.6.3.svn | ||||
Summary | 0017332: Change from Conical gradient to mesh Gradient generate new color names | ||||
Description | Object gradient conversion from conical to mesh create some non-existing color names, e.g. from Back => BlackBlack0.75. <MPoint GX=\"0\" GY=\"0\" CTX=\"0\" CTY=\"0\" CBX=\"0\" CBY=\"0\" CLX=\"0\" CLY=\"0\" CRX=\"0\" CRY=\"0\" CCX=\"0\" CCY=\"0\" NAME=\"Black\" SHADE=\"100\" TRANS=\"1\"/>\n <MPoint GX=\"0\" GY=\"0\" CTX=\"0\" CTY=\"0\" CBX=\"0\" CBY=\"0\" CLX=\"0\" CLY=\"0\" CRX=\"0\" CRY=\"0\" CCX=\"0\" CCY=\"0\" NAME=\"BlackBlack0.25\" SHADE=\"100\" TRANS=\"1\"/>\n <MPoint GX=\"0\" GY=\"0\" CTX=\"0\" CTY=\"0\" CBX=\"0\" CBY=\"0\" CLX=\"0\" CLY=\"0\" CRX=\"0\" CRY=\"0\" CCX=\"0\" CCY=\"0\" NAME=\"BlackBlack0.5\" SHADE=\"100\" TRANS=\"1\"/>\n <MPoint GX=\"0\" GY=\"0\" CTX=\"0\" CTY=\"0\" CBX=\"0\" CBY=\"0\" CLX=\"0\" CLY=\"0\" CRX=\"0\" CRY=\"0\" CCX=\"0\" CCY=\"0\" NAME=\"BlackBlack0.75\" SHADE=\"100\" TRANS=\"1\"/>\n <MPoint GX=\"0\" GY=\"0\" CTX=\"0\" CTY=\"0\" CBX=\"0\" CBY=\"0\" CLX=\"0\" CLY=\"0\" CRX=\"0\" CRY=\"0\" CCX=\"0\" CCY=\"0\" NAME=\"Black\" SHADE=\"100\" TRANS=\"1\"/>\n Issues comes from VColorStop PageItem::computeInBetweenStop Some intermediate color steps are created for the conical gradient that are not added as true new colors when converted to a mesh gradient. | ||||
Steps To Reproduce | 1. Create a new shape, e.g. rectangle 2. Fill object with conical gradient (keep colors as they are) 3. Change conical gradient to mesh -> issue is not rendered but when you copy and paste the element you see a brown color instead of black. You will see the issue too when you save and open the document. | ||||
Tags | No tags attached. | ||||
Patch | No | ||||
|
Document-1.sla (19,825 bytes)
<?xml version="1.0" encoding="UTF-8"?> <SCRIBUSUTF8NEW Version="1.6.2"> <DOCUMENT ANZPAGES="1" PAGEWIDTH="595.275590551181" PAGEHEIGHT="841.889763779528" BORDERLEFT="40" BORDERRIGHT="40" BORDERTOP="40" BORDERBOTTOM="40" PRESET="0" BleedTop="0" BleedLeft="0" BleedRight="0" BleedBottom="0" ORIENTATION="0" PAGESIZE="A4" FIRSTNUM="1" BOOK="0" AUTOSPALTEN="1" ABSTSPALTEN="11" UNITS="1" DFONT="Arial Regular" DSIZE="12" DCOL="1" DGAP="0" TabFill="" TabWidth="36" TextDistLeft="0" TextDistRight="0" TextDistBottom="0" TextDistTop="0" FirstLineOffset="1" AUTHOR="" COMMENTS="" KEYWORDS="" PUBLISHER="" DOCDATE="" DOCTYPE="" DOCFORMAT="" DOCIDENT="" DOCSOURCE="" DOCLANGINFO="" DOCRELATION="" DOCCOVER="" DOCRIGHTS="" DOCCONTRIB="" TITLE="" SUBJECT="" VHOCH="33" VHOCHSC="66" VTIEF="33" VTIEFSC="66" VKAPIT="75" BASEGRID="14.4" BASEO="0" AUTOL="100" UnderlinePos="-1" UnderlineWidth="-1" StrikeThruPos="-1" StrikeThruWidth="-1" GROUPC="1" HCMS="0" DPSo="0" DPSFo="0" DPuse="0" DPgam="0" DPbla="1" DPPr="ISO Coated v2 300% (basICColor)" DPIn="sRGB display profile (ICC v2.2)" DPInCMYK="ISO Coated v2 300% (basICColor)" DPIn2="sRGB display profile (ICC v2.2)" DPIn3="ISO Coated v2 300% (basICColor)" DISc="1" DIIm="0" ALAYER="0" LANGUAGE="de" AUTOMATIC="1" AUTOCHECK="0" GUIDELOCK="0" SnapToGuides="0" SnapToGrid="0" SnapToElement="0" MINGRID="20.001" MAJGRID="100.001" SHOWGRID="0" SHOWGUIDES="1" showcolborders="1" SHOWFRAME="1" SHOWControl="0" SHOWLAYERM="0" SHOWMARGIN="1" SHOWBASE="0" SHOWPICT="1" SHOWLINK="0" rulerMode="1" showrulers="1" showBleed="1" rulerXoffset="0" rulerYoffset="0" GuideRad="10" GRAB="4" POLYC="4" POLYF="0.502" POLYR="0" POLYIR="0" POLYCUR="0" POLYOCUR="0" POLYS="0" arcStartAngle="30" arcSweepAngle="300" spiralStartAngle="0" spiralEndAngle="1080" spiralFactor="1.2" AutoSave="1" AutoSaveTime="600000" AutoSaveCount="1" AutoSaveKeep="0" AUtoSaveInDocDir="1" AutoSaveDir="" ScratchBottom="20.001" ScratchLeft="100.001" ScratchRight="100.001" ScratchTop="20.001" GapHorizontal="0" GapVertical="40" StartArrow="0" EndArrow="0" PEN="Black" BRUSH="None" PENLINE="Black" PENTEXT="Black" StrokeText="Black" TextBackGround="None" TextLineColor="None" TextBackGroundShade="100" TextLineShade="100" TextPenShade="100" TextStrokeShade="100" STIL="1" STILLINE="1" WIDTH="1" WIDTHLINE="1" PENSHADE="100" LINESHADE="100" BRUSHSHADE="100" CPICT="None" PICTSHADE="100" CSPICT="None" PICTSSHADE="100" PICTSCX="1" PICTSCY="1" PSCALE="1" PASPECT="1" EmbeddedPath="0" HalfRes="1" dispX="10.001" dispY="10.001" constrain="15" MINORC="#00ff00" MAJORC="#00ff00" GuideC="#000080" BaseC="#c0c0c0" renderStack="2 0 4 1 3" GridType="0" PAGEC="#ffffff" MARGC="#0000ff" RANDF="0" currentProfile="PDF 1.4" calligraphicPenFillColor="Black" calligraphicPenLineColor="Black" calligraphicPenFillColorShade="100" calligraphicPenLineColorShade="100" calligraphicPenLineWidth="1" calligraphicPenAngle="0" calligraphicPenWidth="10" calligraphicPenStyle="1"> <CheckProfile Name="PDF 1.3" ignoreErrors="0" autoCheck="1" checkGlyphs="1" checkOrphans="1" checkOverflow="1" checkPictures="1" checkPartFilledImageFrames="0" checkResolution="1" checkTransparency="1" minResolution="144" maxResolution="2400" checkAnnotations="0" checkRasterPDF="1" checkForGIF="1" ignoreOffLayers="0" checkNotCMYKOrSpot="0" checkDeviceColorsAndOutputIntent="0" checkFontNotEmbedded="1" checkFontIsOpenType="1" checkAppliedMasterDifferentSide="1" checkEmptyTextFrames="1"/> <CheckProfile Name="PDF 1.4" ignoreErrors="0" autoCheck="1" checkGlyphs="1" checkOrphans="1" checkOverflow="1" checkPictures="1" checkPartFilledImageFrames="0" checkResolution="1" checkTransparency="0" minResolution="144" maxResolution="2400" checkAnnotations="0" checkRasterPDF="1" checkForGIF="1" ignoreOffLayers="0" checkNotCMYKOrSpot="0" checkDeviceColorsAndOutputIntent="0" checkFontNotEmbedded="1" checkFontIsOpenType="1" checkAppliedMasterDifferentSide="1" checkEmptyTextFrames="1"/> <CheckProfile Name="PDF 1.5" ignoreErrors="0" autoCheck="1" checkGlyphs="1" checkOrphans="1" checkOverflow="1" checkPictures="1" checkPartFilledImageFrames="0" checkResolution="1" checkTransparency="0" minResolution="144" maxResolution="2400" checkAnnotations="0" checkRasterPDF="1" checkForGIF="1" ignoreOffLayers="0" checkNotCMYKOrSpot="0" checkDeviceColorsAndOutputIntent="0" checkFontNotEmbedded="1" checkFontIsOpenType="1" checkAppliedMasterDifferentSide="1" checkEmptyTextFrames="1"/> <CheckProfile Name="PDF 1.6" ignoreErrors="0" autoCheck="1" checkGlyphs="1" checkOrphans="1" checkOverflow="1" checkPictures="1" checkPartFilledImageFrames="0" checkResolution="1" checkTransparency="0" minResolution="144" maxResolution="2400" checkAnnotations="0" checkRasterPDF="1" checkForGIF="1" ignoreOffLayers="0" checkNotCMYKOrSpot="0" checkDeviceColorsAndOutputIntent="0" checkFontNotEmbedded="1" checkFontIsOpenType="0" checkAppliedMasterDifferentSide="1" checkEmptyTextFrames="1"/> <CheckProfile Name="PDF/X-1a" ignoreErrors="0" autoCheck="1" checkGlyphs="1" checkOrphans="1" checkOverflow="1" checkPictures="1" checkPartFilledImageFrames="0" checkResolution="1" checkTransparency="1" minResolution="144" maxResolution="2400" checkAnnotations="1" checkRasterPDF="1" checkForGIF="1" ignoreOffLayers="0" checkNotCMYKOrSpot="1" checkDeviceColorsAndOutputIntent="0" checkFontNotEmbedded="1" checkFontIsOpenType="1" checkAppliedMasterDifferentSide="1" checkEmptyTextFrames="1"/> <CheckProfile Name="PDF/X-3" ignoreErrors="0" autoCheck="1" checkGlyphs="1" checkOrphans="1" checkOverflow="1" checkPictures="1" checkPartFilledImageFrames="0" checkResolution="1" checkTransparency="1" minResolution="144" maxResolution="2400" checkAnnotations="1" checkRasterPDF="1" checkForGIF="1" ignoreOffLayers="0" checkNotCMYKOrSpot="0" checkDeviceColorsAndOutputIntent="1" checkFontNotEmbedded="1" checkFontIsOpenType="1" checkAppliedMasterDifferentSide="1" checkEmptyTextFrames="1"/> <CheckProfile Name="PDF/X-4" ignoreErrors="0" autoCheck="1" checkGlyphs="1" checkOrphans="1" checkOverflow="1" checkPictures="1" checkPartFilledImageFrames="0" checkResolution="1" checkTransparency="0" minResolution="144" maxResolution="2400" checkAnnotations="1" checkRasterPDF="1" checkForGIF="1" ignoreOffLayers="0" checkNotCMYKOrSpot="0" checkDeviceColorsAndOutputIntent="1" checkFontNotEmbedded="1" checkFontIsOpenType="0" checkAppliedMasterDifferentSide="1" checkEmptyTextFrames="1"/> <CheckProfile Name="PostScript" ignoreErrors="0" autoCheck="1" checkGlyphs="1" checkOrphans="1" checkOverflow="1" checkPictures="1" checkPartFilledImageFrames="0" checkResolution="1" checkTransparency="1" minResolution="144" maxResolution="2400" checkAnnotations="0" checkRasterPDF="1" checkForGIF="1" ignoreOffLayers="0" checkNotCMYKOrSpot="0" checkDeviceColorsAndOutputIntent="0" checkFontNotEmbedded="0" checkFontIsOpenType="0" checkAppliedMasterDifferentSide="1" checkEmptyTextFrames="1"/> <COLOR NAME="Black" SPACE="CMYK" C="0" M="0" Y="0" K="100"/> <COLOR NAME="BlackBlack0.25" SPACE="RGB" R="153" G="102" B="51"/> <COLOR NAME="BlackBlack0.5" SPACE="RGB" R="153" G="102" B="51"/> <COLOR NAME="BlackBlack0.75" SPACE="RGB" R="153" G="102" B="51"/> <COLOR NAME="Blue" SPACE="RGB" R="0" G="0" B="255"/> <COLOR NAME="Cool Black" SPACE="CMYK" C="60" M="0" Y="0" K="100"/> <COLOR NAME="Cyan" SPACE="CMYK" C="100" M="0" Y="0" K="0"/> <COLOR NAME="Green" SPACE="RGB" R="0" G="255" B="0"/> <COLOR NAME="Magenta" SPACE="CMYK" C="0" M="100" Y="0" K="0"/> <COLOR NAME="Red" SPACE="RGB" R="255" G="0" B="0"/> <COLOR NAME="Registration" SPACE="CMYK" C="100" M="100" Y="100" K="100" Register="1"/> <COLOR NAME="Rich Black" SPACE="CMYK" C="60" M="40" Y="40" K="100"/> <COLOR NAME="Warm Black" SPACE="CMYK" C="0" M="60" Y="29.8039215686275" K="100"/> <COLOR NAME="White" SPACE="CMYK" C="0" M="0" Y="0" K="0"/> <COLOR NAME="Yellow" SPACE="CMYK" C="0" M="0" Y="100" K="0"/> <HYPHEN/> <CHARSTYLE CNAME="Default Character Style" DefaultStyle="1" FONT="Arial Regular" FONTSIZE="12" FONTFEATURES="" FEATURES="inherit" FCOLOR="Black" FSHADE="100" HyphenWordMin="3" SCOLOR="Black" BGCOLOR="None" BGSHADE="100" SSHADE="100" TXTSHX="5" TXTSHY="-5" TXTOUT="1" TXTULP="-0.1" TXTULW="-0.1" TXTSTP="-0.1" TXTSTW="-0.1" SCALEH="100" SCALEV="100" BASEO="0" KERN="0" LANGUAGE="de"/> <STYLE NAME="Default Paragraph Style" DefaultStyle="1" ALIGN="0" DIRECTION="0" LINESPMode="0" LINESP="15" INDENT="0" RMARGIN="0" FIRST="0" VOR="0" NACH="0" ParagraphEffectOffset="0" DROP="0" DROPLIN="2" Bullet="0" Numeration="0" HyphenConsecutiveLines="2" BCOLOR="None" BSHADE="100"/> <TableStyle NAME="Default Table Style" DefaultStyle="1" FillColor="None" FillShade="100"> <TableBorderLeft> <TableBorderLine Width="1" PenStyle="1" Color="Black" Shade="100"/> </TableBorderLeft> <TableBorderRight> <TableBorderLine Width="1" PenStyle="1" Color="Black" Shade="100"/> </TableBorderRight> <TableBorderTop> <TableBorderLine Width="1" PenStyle="1" Color="Black" Shade="100"/> </TableBorderTop> <TableBorderBottom> <TableBorderLine Width="1" PenStyle="1" Color="Black" Shade="100"/> </TableBorderBottom> </TableStyle> <CellStyle NAME="Default Cell Style" DefaultStyle="1" FillColor="None" FillShade="100" LeftPadding="1" RightPadding="1" TopPadding="1" BottomPadding="1"> <TableBorderLeft> <TableBorderLine Width="1" PenStyle="1" Color="Black" Shade="100"/> </TableBorderLeft> <TableBorderRight> <TableBorderLine Width="1" PenStyle="1" Color="Black" Shade="100"/> </TableBorderRight> <TableBorderTop> <TableBorderLine Width="1" PenStyle="1" Color="Black" Shade="100"/> </TableBorderTop> <TableBorderBottom> <TableBorderLine Width="1" PenStyle="1" Color="Black" Shade="100"/> </TableBorderBottom> </CellStyle> <LAYERS NUMMER="0" LEVEL="0" NAME="Background" SICHTBAR="1" DRUCKEN="1" EDIT="1" SELECT="0" FLOW="1" TRANS="1" BLEND="0" OUTL="0" LAYERC="#000000"/> <Printer firstUse="1" toFile="0" useAltPrintCommand="0" outputSeparations="0" useSpotColors="1" useColor="1" mirrorH="0" mirrorV="0" useICC="0" doGCR="0" doClip="0" setDevParam="0" useDocBleeds="1" cropMarks="0" bleedMarks="0" registrationMarks="0" colorMarks="0" includePDFMarks="1" PSLevel="3" PrintEngine="3" markLength="20.0013" markOffset="0" BleedTop="0" BleedLeft="0" BleedRight="0" BleedBottom="0" printer="File" filename="" separationName="All" printerCommand=""/> <PDF firstUse="1" Thumbnails="0" Articles="0" Bookmarks="0" Compress="1" CMethod="0" Quality="0" EmbedPDF="0" MirrorH="0" MirrorV="0" Clip="0" rangeSel="0" rangeTxt="" RotateDeg="0" PresentMode="0" RecalcPic="0" FontEmbedding="0" Grayscale="0" RGBMode="1" UseProfiles="0" UseProfiles2="0" Binding="0" PicRes="300" Resolution="300" Version="14" Intent="1" Intent2="0" SolidP="sRGB display profile (ICC v2.2)" ImageP="sRGB display profile (ICC v2.2)" PrintP="ISO Coated v2 300% (basICColor)" InfoString="" BTop="0" BLeft="0" BRight="0" BBottom="0" useDocBleeds="1" cropMarks="0" bleedMarks="0" registrationMarks="0" colorMarks="0" docInfoMarks="0" markLength="20.0012598425197" markOffset="0" ImagePr="0" PassOwner="" PassUser="" Permissions="-4" Encrypt="0" UseLayers="0" UseLpi="0" UseSpotColors="1" doMultiFile="0" displayBookmarks="0" displayFullscreen="0" displayLayers="0" displayThumbs="0" hideMenuBar="0" hideToolBar="0" fitWindow="0" openAfterExport="0" PageLayout="0" openAction=""> <LPI Color="Black" Frequency="133" Angle="45" SpotFunction="3"/> <LPI Color="Cyan" Frequency="133" Angle="105" SpotFunction="3"/> <LPI Color="Magenta" Frequency="133" Angle="75" SpotFunction="3"/> <LPI Color="Yellow" Frequency="133" Angle="90" SpotFunction="3"/> </PDF> <DocItemAttributes/> <TablesOfContents/> <NotesStyles> <notesStyle Name="Default" Start="1" Endnotes="0" Type="Type_1_2_3" Range="0" Prefix="" Suffix=")" AutoHeight="1" AutoWidth="1" AutoRemove="1" AutoWeld="1" SuperNote="1" SuperMaster="1" MarksStyle="" NotesStyle=""/> </NotesStyles> <PageSets> <Set Name="Single Page" FirstPage="0" Rows="1" Columns="1"/> <Set Name="Facing Pages" FirstPage="1" Rows="1" Columns="2"> <PageNames Name="Left Page"/> <PageNames Name="Right Page"/> </Set> <Set Name="3-Fold" FirstPage="0" Rows="1" Columns="3"> <PageNames Name="Left Page"/> <PageNames Name="Middle"/> <PageNames Name="Right Page"/> </Set> <Set Name="4-Fold" FirstPage="0" Rows="1" Columns="4"> <PageNames Name="Left Page"/> <PageNames Name="Middle Left"/> <PageNames Name="Middle Right"/> <PageNames Name="Right Page"/> </Set> </PageSets> <Sections> <Section Number="0" Name="Section 1" From="0" To="0" Type="Type_1_2_3" Start="1" Reversed="0" Active="1" FillChar="0" FieldWidth="0"/> </Sections> <MASTERPAGE PAGEXPOS="100.001" PAGEYPOS="20.001" PAGEWIDTH="595.275590551181" PAGEHEIGHT="841.889763779528" BORDERLEFT="40" BORDERRIGHT="40" BORDERTOP="40" BORDERBOTTOM="40" NUM="0" NAM="Normal" MNAM="" Size="A4" Orientation="0" LEFT="0" PRESET="0" VerticalGuides="" HorizontalGuides="" AGhorizontalAutoGap="0" AGverticalAutoGap="0" AGhorizontalAutoCount="0" AGverticalAutoCount="0" AGhorizontalAutoRefer="0" AGverticalAutoRefer="0" AGSelection="0 0 0 0" pageEffectDuration="1" pageViewDuration="1" effectType="0" Dm="0" M="0" Di="0"/> <PAGE PAGEXPOS="100.001" PAGEYPOS="20.001" PAGEWIDTH="595.275590551181" PAGEHEIGHT="841.889763779528" BORDERLEFT="40" BORDERRIGHT="40" BORDERTOP="40" BORDERBOTTOM="40" NUM="0" NAM="" MNAM="Normal" Size="A4" Orientation="0" LEFT="0" PRESET="0" VerticalGuides="" HorizontalGuides="" AGhorizontalAutoGap="0" AGverticalAutoGap="0" AGhorizontalAutoCount="0" AGverticalAutoCount="0" AGhorizontalAutoRefer="0" AGverticalAutoRefer="0" AGSelection="0 0 0 0" pageEffectDuration="1" pageViewDuration="1" effectType="0" Dm="0" M="0" Di="0"/> <PAGEOBJECT XPOS="186.260869565217" YPOS="177.652173913043" OwnPage="0" ItemID="836352918" PTYPE="6" WIDTH="222.260869565217" HEIGHT="207.391304347826" FRTYPE="0" CLIPEDIT="0" GRTYP="11" PWIDTH="1" PCOLOR2="Black" PLINEART="1" path="M0 0 L222.261 0 L222.261 207.391 L0 207.391 L0 0 Z" copath="M0 0 L222.261 0 L222.261 207.391 L0 207.391 L0 0 Z" gXpos="186.260869565217" gYpos="177.652173913043" gWidth="0" gHeight="0" GMAY="5" GMAX="2" LAYER="0"> <MPoint GX="222.260869565217" GY="0" CTX="222.260869565217" CTY="0" CBX="222.260869565217" CBY="0" CLX="222.260869565217" CLY="0" CRX="222.260869565217" CRY="122.751288738157" CCX="222.260869565217" CCY="0" NAME="Black" SHADE="100" TRANS="1"/> <MPoint GX="0" GY="222.260869565217" CTX="0" CTY="222.260869565217" CBX="0" CBY="222.260869565217" CLX="122.751288738157" CLY="222.260869565217" CRX="-122.751288738157" CRY="222.260869565217" CCX="0" CCY="222.260869565217" NAME="BlackBlack0.25" SHADE="100" TRANS="1"/> <MPoint GX="-222.260869565217" GY="0" CTX="-222.260869565217" CTY="0" CBX="-222.260869565217" CBY="0" CLX="-222.260869565217" CLY="122.751288738157" CRX="-222.260869565217" CRY="-122.751288738157" CCX="-222.260869565217" CCY="0" NAME="BlackBlack0.5" SHADE="100" TRANS="1"/> <MPoint GX="0" GY="-222.260869565217" CTX="0" CTY="-222.260869565217" CBX="0" CBY="-222.260869565217" CLX="-122.751288738157" CLY="-222.260869565217" CRX="122.751288738157" CRY="-222.260869565217" CCX="0" CCY="-222.260869565217" NAME="BlackBlack0.75" SHADE="100" TRANS="1"/> <MPoint GX="222.260869565217" GY="0" CTX="222.260869565217" CTY="0" CBX="222.260869565217" CBY="0" CLX="222.260869565217" CLY="-122.751288738157" CRX="222.260869565217" CRY="0" CCX="222.260869565217" CCY="0" NAME="Black" SHADE="100" TRANS="1"/> <MPoint GX="0" GY="0" CTX="0" CTY="0" CBX="0" CBY="0" CLX="0" CLY="0" CRX="0" CRY="0" CCX="0" CCY="0" NAME="Black" SHADE="100" TRANS="1"/> <MPoint GX="0" GY="0" CTX="0" CTY="0" CBX="0" CBY="0" CLX="0" CLY="0" CRX="0" CRY="0" CCX="0" CCY="0" NAME="BlackBlack0.25" SHADE="100" TRANS="1"/> <MPoint GX="0" GY="0" CTX="0" CTY="0" CBX="0" CBY="0" CLX="0" CLY="0" CRX="0" CRY="0" CCX="0" CCY="0" NAME="BlackBlack0.5" SHADE="100" TRANS="1"/> <MPoint GX="0" GY="0" CTX="0" CTY="0" CBX="0" CBY="0" CLX="0" CLY="0" CRX="0" CRY="0" CCX="0" CCY="0" NAME="BlackBlack0.75" SHADE="100" TRANS="1"/> <MPoint GX="0" GY="0" CTX="0" CTY="0" CBX="0" CBY="0" CLX="0" CLY="0" CRX="0" CRY="0" CCX="0" CCY="0" NAME="Black" SHADE="100" TRANS="1"/> </PAGEOBJECT> <PAGEOBJECT XPOS="370.260869565217" YPOS="251.652173913043" OwnPage="0" ItemID="838023078" PTYPE="6" WIDTH="222.261" HEIGHT="207.391" FRTYPE="0" CLIPEDIT="1" GRTYP="11" PWIDTH="1" PCOLOR2="Black" PLINEART="1" path="M0 0 L222.261 0 L222.261 207.391 L0 207.391 L0 0 Z" copath="M0 0 L222.261 0 L222.261 207.391 L0 207.391 L0 0 Z" gXpos="370.260869565217" gYpos="251.652173913043" gWidth="0" gHeight="0" GMAY="5" GMAX="2" LAYER="0"> <MPoint GX="222.260869565217" GY="0" CTX="222.260869565217" CTY="0" CBX="222.260869565217" CBY="0" CLX="222.260869565217" CLY="0" CRX="222.260869565217" CRY="122.751288738157" CCX="222.260869565217" CCY="0" NAME="Black" SHADE="100" TRANS="1"/> <MPoint GX="0" GY="222.260869565217" CTX="0" CTY="222.260869565217" CBX="0" CBY="222.260869565217" CLX="122.751288738157" CLY="222.260869565217" CRX="-122.751288738157" CRY="222.260869565217" CCX="0" CCY="222.260869565217" NAME="BlackBlack0.25" SHADE="100" TRANS="1"/> <MPoint GX="-222.260869565217" GY="0" CTX="-222.260869565217" CTY="0" CBX="-222.260869565217" CBY="0" CLX="-222.260869565217" CLY="122.751288738157" CRX="-222.260869565217" CRY="-122.751288738157" CCX="-222.260869565217" CCY="0" NAME="BlackBlack0.5" SHADE="100" TRANS="1"/> <MPoint GX="0" GY="-222.260869565217" CTX="0" CTY="-222.260869565217" CBX="0" CBY="-222.260869565217" CLX="-122.751288738157" CLY="-222.260869565217" CRX="122.751288738157" CRY="-222.260869565217" CCX="0" CCY="-222.260869565217" NAME="BlackBlack0.75" SHADE="100" TRANS="1"/> <MPoint GX="222.260869565217" GY="0" CTX="222.260869565217" CTY="0" CBX="222.260869565217" CBY="0" CLX="222.260869565217" CLY="-122.751288738157" CRX="222.260869565217" CRY="0" CCX="222.260869565217" CCY="0" NAME="Black" SHADE="100" TRANS="1"/> <MPoint GX="0" GY="0" CTX="0" CTY="0" CBX="0" CBY="0" CLX="0" CLY="0" CRX="0" CRY="0" CCX="0" CCY="0" NAME="Black" SHADE="100" TRANS="1"/> <MPoint GX="0" GY="0" CTX="0" CTY="0" CBX="0" CBY="0" CLX="0" CLY="0" CRX="0" CRY="0" CCX="0" CCY="0" NAME="BlackBlack0.25" SHADE="100" TRANS="1"/> <MPoint GX="0" GY="0" CTX="0" CTY="0" CBX="0" CBY="0" CLX="0" CLY="0" CRX="0" CRY="0" CCX="0" CCY="0" NAME="BlackBlack0.5" SHADE="100" TRANS="1"/> <MPoint GX="0" GY="0" CTX="0" CTY="0" CBX="0" CBY="0" CLX="0" CLY="0" CRX="0" CRY="0" CCX="0" CCY="0" NAME="BlackBlack0.75" SHADE="100" TRANS="1"/> <MPoint GX="0" GY="0" CTX="0" CTY="0" CBX="0" CBY="0" CLX="0" CLY="0" CRX="0" CRY="0" CCX="0" CCY="0" NAME="Black" SHADE="100" TRANS="1"/> </PAGEOBJECT> </DOCUMENT> </SCRIBUSUTF8NEW> |
|
I fixed it by creating a new mesh gradient (meshGradientArray) when the gradient type changed from conical to mesh. Downside: you can not "convert" a conical mesh to an editable mesh by switching the gradient type. @cbradney please check if the solution is ok. meshgradient_2024-12-10_01.patch (1,390 bytes)
Index: scribus/pageitem.cpp =================================================================== --- scribus/pageitem.cpp (Revision 26464) +++ scribus/pageitem.cpp (Arbeitskopie) @@ -6164,7 +6164,7 @@ fill_gradient = is->getOldState(); else fill_gradient = is->getNewState(); - if (gradientType() == 13) + if (gradientType() == Gradient_Conical) createConicalMesh(); update(); } Index: scribus/scribusdoc.cpp =================================================================== --- scribus/scribusdoc.cpp (Revision 26464) +++ scribus/scribusdoc.cpp (Arbeitskopie) @@ -8329,7 +8329,10 @@ for (int i = 0; i < selectedItemCount; ++i) { PageItem* currItem = itemSelection->itemAt(i); - currItem->setGradientType(typ); + + int oldType = currItem->gradientType(); + + currItem->setGradientType(typ); switch (currItem->gradientType()) { case Gradient_None: @@ -8391,6 +8394,12 @@ currItem->updateGradientVectors(); if (currItem->gradientType() == Gradient_Conical) currItem->createConicalMesh(); + + // 17332: Conical gradient and mesh gradient are sharing the same meshGradientArray. + // We have to reset the array for mesh gradient to avoid a resue of the "fake" colors of the conical gradient + if (currItem->gradientType() == Gradient_Mesh && oldType == Gradient_Conical) + currItem->createGradientMesh(2, 2); + currItem->update(); } |
|
The second patch contains few more related changes. meshgradient_2024-12-10_02.patch (2,461 bytes)
Index: scribus/pageitem.cpp =================================================================== --- scribus/pageitem.cpp (Revision 26464) +++ scribus/pageitem.cpp (Arbeitskopie) @@ -6164,7 +6164,7 @@ fill_gradient = is->getOldState(); else fill_gradient = is->getNewState(); - if (gradientType() == 13) + if (gradientType() == Gradient_Conical) createConicalMesh(); update(); } Index: scribus/scribusdoc.cpp =================================================================== --- scribus/scribusdoc.cpp (Revision 26464) +++ scribus/scribusdoc.cpp (Arbeitskopie) @@ -8329,6 +8329,9 @@ for (int i = 0; i < selectedItemCount; ++i) { PageItem* currItem = itemSelection->itemAt(i); + + int oldType = currItem->gradientType(); + currItem->setGradientType(typ); switch (currItem->gradientType()) { @@ -8391,6 +8394,12 @@ currItem->updateGradientVectors(); if (currItem->gradientType() == Gradient_Conical) currItem->createConicalMesh(); + + // 17332: Conical gradient and mesh gradient are sharing the same meshGradientArray. + // We have to reset the array for mesh gradient to avoid a resue of the "fake" colors of the conical gradient + if (currItem->gradientType() == Gradient_Mesh && oldType == Gradient_Conical) + currItem->createGradientMesh(2, 2); + currItem->update(); } Index: scribus/ui/colorpicker/colorpicker_gradient.cpp =================================================================== --- scribus/ui/colorpicker/colorpicker_gradient.cpp (Revision 26464) +++ scribus/ui/colorpicker/colorpicker_gradient.cpp (Arbeitskopie) @@ -437,10 +437,10 @@ case Gradient_4Colors: gradType = VGradient::fourcolor; break; + case Gradient_Conical: case Gradient_Mesh: gradType = VGradient::mesh; break; - case Gradient_Conical: case Gradient_PatchMesh: gradType = VGradient::freemesh; break; Index: scribus/ui/propertiespalette_fill.cpp =================================================================== --- scribus/ui/propertiespalette_fill.cpp (Revision 26464) +++ scribus/ui/propertiespalette_fill.cpp (Arbeitskopie) @@ -370,6 +370,8 @@ blockUpdates(true); + m_doc->itemSelection_SetItemGradFill(buttonFillColor->type()); + switch(buttonFillColor->mode()) { default: @@ -444,7 +446,6 @@ break; } - m_doc->itemSelection_SetItemGradFill(buttonFillColor->type()); m_doc->itemSelection_SetOverprint(buttonFillColor->generalData().overprint); blockUpdates(false); |
Date Modified | Username | Field | Change |
---|---|---|---|
2024-12-09 20:56 | nitramr | New Issue | |
2024-12-09 20:56 | nitramr | File Added: Document-1.sla | |
2024-12-09 22:16 | nitramr | Summary | Copy and paste of an object duplicates colors => Change from Conical gradient to mesh Gradient generate new color names |
2024-12-09 22:16 | nitramr | Description Updated | |
2024-12-09 22:16 | nitramr | Steps to Reproduce Updated | |
2024-12-09 22:22 | nitramr | Description Updated | |
2024-12-10 20:15 | nitramr | Note Added: 0051713 | |
2024-12-10 20:15 | nitramr | File Added: meshgradient_2024-12-10_01.patch | |
2024-12-10 20:27 | nitramr | Note Added: 0051714 | |
2024-12-10 20:27 | nitramr | File Added: meshgradient_2024-12-10_02.patch |